Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hungtruong/Google-Translate-TTS
A python script for using Google's undocumented TTS api to save text to an MP3 file.
https://github.com/hungtruong/Google-Translate-TTS
Last synced: about 1 month ago
JSON representation
A python script for using Google's undocumented TTS api to save text to an MP3 file.
- Host: GitHub
- URL: https://github.com/hungtruong/Google-Translate-TTS
- Owner: hungtruong
- License: mit
- Created: 2013-04-27T00:44:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-08T23:41:44.000Z (almost 10 years ago)
- Last Synced: 2024-08-07T23:47:34.771Z (5 months ago)
- Language: Python
- Size: 162 KB
- Stars: 141
- Watchers: 24
- Forks: 51
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
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](http://www.hung-truong.com/blog/2013/04/26/hacking-googles-text-to-speech-api/).
Usage
=====
Either 1/ on the command line, or 2/ as a function1/ Command line
---```
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 こんにちは
```2/ Function
---
or we can callaudio_extract(input_text='tunnel snakes rule apparently', args = {'language':'en','output':'outputto.mp3'})
Remember
===================
Don't be evil.