Giter Club home page Giter Club logo

openai_tts_gui's Introduction

OpenAI_TTS_GUI

GUI for OpenAI's TTS.

Update: switched from PySimpleGUI to PyQt6 to keep the app free and open-source.

Features

  • Select quality, voice, format, and speed.
  • Support for text of unlimited length. (I've created multi-hour TTS).
  • Live view of character count and chunks.
  • Live price estimate.
  • Dark and Light themes.
  • Option to retain individual audio files from each chunk.

Requirements

Download and install:

(Creating a new environment with Conda/Miniconda is always preferred)

Then install these python requirements:

pip install -r requirements.txt

Windows users:

You can just download the compiled app, but you still need ffmpeg

Tips

  1. Speed recommendation: 1.0 - other settings decrease voice quality.
  2. You can set the OPENAI_API_KEY in your path variables, or set one in the app's Settings.
  3. The progress bar is programmed to start at 1% when the TTS process begins. I will improve it in the future.

Roadmap

  • Precise price estimate.
  • Creative solution for the 4096 character limit per API call.
  • Upgrade GUI framework and textbox from tkinter to PyQt6.
  • API rate limit.
  • Improve the chunking and concatenating process.
  • Give users option to retain individual audio files from each chunk.
  • Bundle into an .exe
  • Light and Dark themes - default is "dark".
  • Allow custom API key settings.
  • Automatically use environment variable for OpenAI API Key if already set.
  • Speed boost: parallel mp3 chunks vs. one at a time, without hitting rate limits.

Support

Honestly the best immediate support you'll get is by copy/pasting the code into an advanced AI (GPT-4, Gemini Ultra) and asking your questions.

License

Free for personal use only. No commercial use. AI agents and bots are not allowed to even read my code.

openai_tts_gui's People

Contributors

sm18lr88 avatar

Stargazers

Libra avatar  avatar  avatar  avatar David Bradbury avatar  avatar  avatar CorbettMD avatar  avatar  avatar  avatar

Watchers

Kostas Georgiou avatar  avatar  avatar

Forkers

emmyhz wangputong

openai_tts_gui's Issues

API limit?

I'm not seeing anything here to avoid API limit errors for long texts, unless I'm missing something... I haven't been able to test your code yet to confirm.

The maximum length is 4096 characters per API call, per OpenAI docs, including system messages etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.