This is a simple Gradio Interface to use OpenAI Text-to-Speech API. The interface looks like this:
Get your OpenAI API key following the tutorial here. I use Miniforge to set up the environment, but you can use Anaconda or any other package manager.
mamba env create -f env.yaml # Create the environment
conda activate openai_tts # Activate the environment
python app.py # Run the app
This repo is adapted from https://github.com/leokwsw/OpenAI-TTS-Gradio