【文件属性】:
文件名称:google-translate-tts:Google Translate的文字转语音服务
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-11 18:13:39
thai-language tts-engines google-translate-api HTML
Google翻译TTS API
基于此API
https://translate.google.com/translate_tts?ie=UTF-8&q=สวัสดีครับ&tl=th-TH&client=tw-ob
安装
python -m venv venv
venv\Script\activate.bat
pip install -r requirements.txt
python tts_service.py
例子
# web demo
http://localhost:5000/
# return mp3
http://localhost:5000/tts?msg=สวัสดีครับ
http://localhost:5000/tts?msg=helloworld&lang=en-US
[警告]这不是官方的API。 使用风险自负。
【文件预览】:
google-translate-tts-master
----.gitignore(29B)
----templates()
--------index.html(2KB)
----requirements.txt(200B)
----LICENSE(1KB)
----README.md(531B)
----translate_tts.py(804B)
----tts_service.py(713B)