question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error getting sound

See original GitHub issue

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>

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jabrenacommented, Dec 9, 2015

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

0reactions
roger2hkcommented, Dec 1, 2016

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

DxDiag Error: Problem Getting Extra Sound Info & Windows App
Right-click the Windows key and select Device Manager. · Expand Sound, video and game controllers. · Right-click your sound card and click ...
Read more >
Windows 10: DxDiag Error: Problem Getting Extra Sound Info
Right-click the Windows key and select Device Manager. · Expand Sound, video and game controllers. · Right-click your sound card and click
Read more >
Audio Not Working in Windows 10? 9 Ways to Fix Sound ...
1. Check Volume Levels and Muted Outputs · 2. Make Sure You're Using the Right Audio Output · 3. Check All Audio Cables...
Read more >
Troubleshoot audio and video issues on your computer or ...
Android: To ensure that audio isn't being sent to the headphone jack, plug headphones in, and then unplug them. If the problem persists,...
Read more >
"No Audio Output Device is Installed" Error Windows 10
For a hassle free solution to solve your driver issue, you can just download Driver Support which will scan your computer to detect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found