Try out the OpenAI Text to Speech API in your browser.
Minimal yet working prototype. Feel free to propose features and contribute PRs!
Visit the playground here: https://linqlover.github.io/simple-openai-tts-playground
- Select different voices and models
- Automatic division of long textes
- Price display
- Caching of audio files (in local browser storage)
To run the playground locally:
- Check out the repository
- Host a web server using
python3 -m http.server
(or using node analogously) - Open the playground on
http://localhost:8000/
(NOThttp://0.0.0.0/
because browsers might treat it as insecure context)