aedocw / epub2tts

Turn an epub or text file into an audiobook
Apache License 2.0
496 stars 45 forks source link

Add OpenAI TTS option #60

Closed aedocw closed 10 months ago

aedocw commented 10 months ago

The TTS from OpenAI is pretty good even though it is not free, adding an option to use that instead of Coqui-TTS would be nice.

Reference: https://platform.openai.com/docs/guides/text-to-speech

Note: character limit is 4096 per request, so will have to break down number of sentences to send at a time.