Skip to content

A python script for using Google's undocumented TTS api to save text to an MP3 file.

Notifications You must be signed in to change notification settings

fiveoceans-dev/Google-Translate-TTS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Google-Translate-TTS

A python script for using Google's undocumented TTS api to save text to an MP3 file.

For more background, check out this blog post.

usage: GoogleTTS.py [-h] [-o [OUTPUT]] [-l [LANGUAGE]]
                    (-f FILE | -s STRING [STRING ...])

Google TTS Downloader.

optional arguments:
  -h, --help            show this help message and exit
  -o [OUTPUT], --output [OUTPUT]
                        Filename to output audio to
  -l [LANGUAGE], --language [LANGUAGE]
                        Language to output text to.
  -f FILE, --file FILE  File to read text from.
  -s STRING [STRING ...], --string STRING [STRING ...]
                        A string of text to convert to speech.

Examples

To convert text from a file:

GoogleTTS.py -f text.txt

To convert text from the commandline to a named file:

GoogleTTS.py -l ja -o konnichiwa_bitches.mp3 -s こんにちは

Remember

Don't be evil.

About

A python script for using Google's undocumented TTS api to save text to an MP3 file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published