https://github.com/diewland/google-translate-tts
Text to speech service from Google Translate
https://github.com/diewland/google-translate-tts
google-translate-api thai-language tts-engines
Last synced: about 1 year ago
JSON representation
Text to speech service from Google Translate
- Host: GitHub
- URL: https://github.com/diewland/google-translate-tts
- Owner: diewland
- License: mit
- Created: 2019-04-04T03:26:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T21:34:55.000Z (over 3 years ago)
- Last Synced: 2025-01-12T06:26:13.034Z (over 1 year ago)
- Topics: google-translate-api, thai-language, tts-engines
- Language: HTML
- Size: 15.6 KB
- Stars: 5
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Translate TTS API
Based on this API
```
https://translate.google.com/translate_tts?ie=UTF-8&q=สวัสดีครับ&tl=th-TH&client=tw-ob
```
### Installation
```
python -m venv venv
venv\Script\activate.bat
pip install -r requirements.txt
python tts_service.py
```
### Examples
```
# web demo
http://localhost:5000/
# return mp3
http://localhost:5000/tts?msg=สวัสดีครับ
http://localhost:5000/tts?msg=helloworld&lang=en-US
```
[ WARNING ] This is not offical API. Use at your own risk.