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

Did Google change its API? #38

Closed XiupengMa closed 10 years ago

XiupengMa commented 10 years ago

I run the tutorial "hello word" program and got an IOException: Server returned HTTP response code: 500 for URL: https://www.google.com/speech-api/v1/recognize?xjerr=1&client=chromium&lang=en-US&maxresults=4

Skylion007 commented 10 years ago

No, a 500 error means Google is rejecting the file you are uploading. Check the encoding and specified sample rate. I will test the hello world for program for defects.

Skylion007 commented 10 years ago

Turns out that I forgot add a mic.close() line. (Google will not accept active files.) I've modified the example to solve this problem.

mayukhnair commented 10 years ago

Ran it 12 hours ago and it ran perfectly.

On Fri, Apr 18, 2014 at 8:29 AM, Xiupeng Ma notifications@github.comwrote:

I run your "hello word" program and got IOException: Server returned HTTP response code: 500 for URL: https://www.google.com/speech-api/v1/recognize?xjerr=1&client=chromium&lang=en-US&maxresults=4

— Reply to this email directly or view it on GitHubhttps://github.com/The-Shadow/java-speech-api/issues/38 .

With my sincere greetings, Mayukh Nair