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

Error when creating the FLAC #2

Closed lolive closed 12 years ago

lolive commented 12 years ago

When running the FLAC encoder on a local version of this file: http://buggerluggs.tripod.com/wavs/hello.wav I get this exception: java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Buffer.java:478) at java.nio.HeapByteBuffer.getShort(HeapByteBuffer.java:285) at com.darkprograms.speech.recognizer.FlacEncoder.convertWaveToFlac(FlacEncoder.java:66) at com.darkprograms.speech.recognizer.Recognizer.getRecognizedDataForWave(Recognizer.java:28) at com.darkprograms.speech.recognizer.Recognizer.getRecognizedDataForWave(Recognizer.java:41) at net.datao.stt.DoItAll$3.actionPerformed(DoItAll.java:48)

Do you have that same problem on the same file?

lkuza2 commented 12 years ago

Hello there lolive, I am currently on vacation and am not available to code. I will check out both your issues when I get home. I think I may know the problem .

lkuza2 commented 12 years ago

Also, are you using API version. 1.00 or 1.01

lkuza2 commented 12 years ago

I am going to close this issue. After experimenting with the WAVE file, i can verify it does indeed convert to flac correctly, but for some reason Google will not recognize it. I do not know why. The exception was fixed in 28f4bf6d9f