Error getting sound
Opened this issue · 7 comments
I am trying to add text to speech to my website but keep getting this error
GET http://translate.google.com/translate_tts?ie=UTF-8&tl=en&q=Ask%20Again&textlen=9&idx=0&total=1 404 (Not Found)
If it matters, I am using Ruby and Sinatra and this is the javascript code
<script type="text/javascript" src="https://rawgithub.com/hiddentao/google-tts/master/google-tts.min.js"></script>
<script>
var tts = new GoogleTTS();
tts.play("<%=@message%>", "en")
</script>
Also, it works when I am running the file locally but doesn't work when its on the server
Yeah, it will only work locally or in a phonegap app, as it states in
the README.
On 23/04/2015 10:29, electrithm wrote:
Also, it works when I am running the file locally but doesn't work
when its on the server—
Reply to this email directly or view it on GitHub
#18 (comment).
Today, I tried to test the project but I receive this http message:
When JS generate this address:
http://translate.google.com/translate_tts?ie=UTF-8&tl=es&q=demo&textlen=4&idx=0&total=1
google redirect to the following url:
http://ipv4.google.com/sorry/IndexRedirect?continue=http://translate.google…%3D0%26total%3D1&q=CGMSBD4O5MQYgJ-gswUiGQDxp4NLmEQHEfv33en1moN-NPKk0aybPWc 503 (Service Unavailable)
Is a particular problem with me?
Juan Antonio
Sorry guys, I haven't used this library in a while so I'm not sure. I wouldn't expect it to work unless you're calling from localhost or within phonegap/electron.js
not work
|:------|:------|:--------|
sadasdsa
A token tk
is required in the current API version.
https://translate.google.com.hk/translate_tts?ie=UTF-8&q=%E6%B8%AC%E8%A9%A6&tl=zh-yue&total=1&idx=0&textlen=2&tk=395724.20302&client=t&ttsspeed=0.24