Google text to speech tts api doesn't seems to work

笑着哭i 提交于 2019-12-11 13:55:36

问题


Hello I tried using Google TTS api to convert text to speech.

http://translate.google.com/translate_tts?tl=en&q=Hello

However this doesn't play in browser.What's the issue ? This used to work till last year.


回答1:


Google has deprecated free access to the API, you now need an API key. Please see here for details.




回答2:


The example noted here worked for me:

wget -q -U Mozilla -O output.mp3 \
"http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=Test&tl=En-gb"


来源:https://stackoverflow.com/questions/36003969/google-text-to-speech-tts-api-doesnt-seems-to-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!