lkuza2 / java-speech-api

The J.A.R.V.I.S. Speech API is designed to be simple and efficient, using the speech engines created by Google to provide functionality for parts of the API. Essentially, it is an API written in Java, including a recognizer, synthesizer, and a microphone capture utility. The project uses Google services for the synthesizer and recognizer. While this requires an Internet connection, it provides a complete, modern, and fully functional speech API in Java.
GNU General Public License v3.0
534 stars 301 forks source link

Getting error 503 in Synthesiser code #68

Closed swapsdphoenix closed 8 years ago

swapsdphoenix commented 9 years ago

Hii, I was able to make use of this api perfectly few months ago....but now when i tried using synthesiser code for text to speech it throws me IOException with 503 server error

java.io.IOException: Server returned HTTP response code: 503 for URL: http://ipv4.google.com/sorry/IndexRedirect?continue=http://translate.google.com/translate_tts%3Ftl%3Den-IN%26q%3DHi%2Bthis%2Bis%2BPINN&q=CGMSBHyb-xMYiZGNsgUiGQDxp4NLlqCsRjsgZZNrqZUgkxvDJHUS0HI at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626) at com.darkprograms.speech.synthesiser.Synthesiser.getMP3Data(Synthesiser.java:130) at texttospeech.TextToSpeech.talk(TextToSpeech.java:35) at texttospeech.TextToSpeech.main(TextToSpeech.java:24)

When i tried manually hitting google translate url i stumbled across captcha authentication page first....Are there any changes happened in last 6 months or so?? Coz previous to that i was using this code perfectly....Please Help in this regard :) Thanks

Skylion007 commented 9 years ago

Update the API. We had to change the URL endpoint to fix the issue. :)

Sent from my iPhone

On Nov 11, 2015, at 8:59 AM, swapsdphoenix notifications@github.com wrote:

Hii, I was able to make use of this api perfectly few months ago....but now when i tried using synthesiser code for text to speech it throws me IOException with 503 server error

java.io.IOException: Server returned HTTP response code: 503 for URL: http://ipv4.google.com/sorry/IndexRedirect?continue=http://translate.google.com/translate_tts%3Ftl%3Den-IN%26q%3DHi%2Bthis%2Bis%2BPINN&q=CGMSBHyb-xMYiZGNsgUiGQDxp4NLlqCsRjsgZZNrqZUgkxvDJHUS0HI at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626) at com.darkprograms.speech.synthesiser.Synthesiser.getMP3Data(Synthesiser.java:130) at texttospeech.TextToSpeech.talk(TextToSpeech.java:35) at texttospeech.TextToSpeech.main(TextToSpeech.java:24)

When i tried manually hitting google translate url i stumbled across captcha authentication page first....Are there any changes happened in last 6 months or so?? Coz previous to that i was using this code perfectly....Please Help in this regard :) Thanks

— Reply to this email directly or view it on GitHub.

swapsdphoenix commented 9 years ago

I updated API downloaded new zip and added its src folder to my external jars in netbeans...but still getting same error

swapsdphoenix commented 9 years ago

I also tried jarvis version 1.12...still throwing 503....Can you please help in this regard...give link of updated api or something... :)

swapsdphoenix commented 9 years ago

hey @Skylion007 can you please check whether its still giving 503?? and if its working then can you plz give me updated working jar?? Thanks :)

Skylion007 commented 9 years ago

I updated the binaries and confirmed that it is working. Try the new Jar file.

swapsdphoenix commented 9 years ago

Thanks a lot.... It works perfectly now :)

swapsdphoenix commented 8 years ago

Hey bro 503 is back can u please just check once...and if its working can u please give me link of updated jar..Thanks

swapsdphoenix commented 8 years ago

@Skylion007 Hey bro 503 is back can u please just check once...and if its working can u please give me link of updated jar..Thanks

swapsdphoenix commented 8 years ago

@Skylion007 I tried new version 2.0 but still getting same issue.. Please help

swapsdphoenix commented 8 years ago

@Skylion007 I understand u might be busy but can you please help me out on this...actually im stuck at this point and am desperately in need of help

Skylion007 commented 8 years ago

Yep, looks like this feature has indeed broken again. I'll need to figure out how to fix it. In the mean time, SynthesierV2 should still be supported.

Skylion007 commented 8 years ago

I pushed a patch that appears to be working for TTS, however the main Google Translate API is now broken so I am making a new issue for that.

swapsdphoenix commented 8 years ago

thanks ill check out patch that you pushed... :)