Thanks to gTTS by @pndurette!
This is an interactive command line text-to-speech tool using Google TTS. Just type text and the voice will be played.
Multi-language is supported.
$ git clone https://github.com/ReekyStive/cli-tts.git
$ cd cli-tts
$ brew install ffmpeg
# be sure ffmpeg is in PATH
$ pip install -r requirements.txt
$ python tts.py
There's a package that already included everything: Win32 Release
Local accent | Language code | Top-level domain |
---|---|---|
English (Australia) | en |
com.au |
English (United Kingdom) | en |
co.uk |
English (United States) | en |
com |
English (Canada) | en |
ca |
English (India) | en |
co.in |
English (Ireland) | en |
ie |
English (South Africa) | en |
co.za |
French (Canada) | fr |
ca |
French (France) | fr |
fr |
Mandarin (China Mainland) | zh-CN |
<any> |
Mandarin (Taiwan) | zh-TW |
<any> |
Portuguese (Brazil) | pt |
com.br |
Portuguese (Portugal) | pt |
pt |
Spanish (Mexico) | es |
com.mx |
Spanish (Spain) | es |
es |
Spanish (United States) | es |
com |
- Python 3.x
- Pip packages
- gTTS
- simpleaudio
- ffmpeg (in PATH)