You can use it to write spoken text to an MP3 file, an object-like file (bytestring) for further audio processing, or directly to standard output.
Peculiarities:
- A customizable tokenizer that allows you to voice text of any length while maintaining correct intonation, abbreviations, decimals and much more.
- Ability to configure text pre-processing to correct pronunciation
Installation:
pip install gTTS
Example usage on the command line:
gtts-cli 'hello' --output hello.mp3
Or in a Python module:
from gtts import gTTS
tts = gTTS('hello')
tts.save('hello.mp3')
🖥 GitHub
🟡 Docks
#library
#python
🆔 @Python4all_pro
