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
535 stars 301 forks source link

Getting 500 back on wav mono 16000 #20

Closed dennismartensson closed 11 years ago

dennismartensson commented 11 years ago

Hi,

I am trying to send 30 sec of 16000 of wav files by using the flak getRecognizedDataForWave

But google seends back a 500. Do you have any ide what this can be?

Thanks

cool wrapper you built

Skylion007 commented 11 years ago

16000 samples per second over 30 seconds is a lot information. 500 usually means that Google has rejected the request. I would either decrease the sample size or split the audio clip into several parts. We have yet to determine the maximum file size that Google will accept. keep in mind that WAV files are transcoded into FLAC files so that file size may increase further. Try a 15 second clip if you are just testing. This limitation is on Google's end, and we have to yet to find a workaround.

Skylion007 commented 11 years ago

Reply if the problem persists with smaller files. Otherwise, this issue will be closed in thirteen days.