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

Google cannot be contacted, 403 error #90

Closed tarunsujit closed 7 years ago

tarunsujit commented 7 years ago

Hey i am getting below error can you please help me out.

type: WAVE type: AU type: AIFF type: FLAC Recording... 2016-12-02 13:13:51.405 java[4079:412926] 13:13:51.405 WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h. Recording stopped. Sample rate is: 8000 java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.google.com/speech-api/v2/recognize?client=chromium&output=json&lang=en-US&key=8b412a2175f7c29975b41d808e587111367b7bcd&maxresults=4 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1839) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) at com.darkprograms.speech.recognizer.Recognizer.rawRequest(Recognizer.java:455) at com.darkprograms.speech.recognizer.Recognizer.getRecognizedDataForFlac(Recognizer.java:280) at HelloWorld.main(HelloWorld.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) ERROR: Google cannot be contacted

Skylion007 commented 7 years ago

Your key is definitely wrong. 403 means your key is incorrect. Please check the FAQ.

On Fri, Dec 2, 2016 at 2:47 AM, Sujit notifications@github.com wrote:

Hey i am getting below error can you please help me out.

type: WAVE type: AU type: AIFF type: FLAC Recording... 2016-12-02 13:13:51.405 java[4079:412926] 13:13:51.405 WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h. Recording stopped. Sample rate is: 8000 java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.google.com/speech-api/v2/recognize?client= chromium&output=json&lang=en-US&key=8b412a2175f7c29975b41d808e5871 11367b7bcd&maxresults=4 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0( HttpURLConnection.java:1839) at sun.net.www.protocol.http.HttpURLConnection.getInputStream( HttpURLConnection.java:1440) at com.darkprograms.speech.recognizer.Recognizer. rawRequest(Recognizer.java:455) at com.darkprograms.speech.recognizer.Recognizer.getRecognizedDataForFlac( Recognizer.java:280) at HelloWorld.main(HelloWorld.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) ERROR: Google cannot be contacted

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lkuza2/java-speech-api/issues/90, or mute the thread https://github.com/notifications/unsubscribe-auth/AB9WX1GcvxGEBMtBNmyHOML92W4LTNeIks5rD8z2gaJpZM4LCSJM .

tarunsujit commented 7 years ago

silly mistake. Sorry. its working now. Thanks @Skylion007

krishnagovindu commented 6 years ago

Hi what u did for this error iam also facing same issue. please help me