Closed mayukhnair closed 10 years ago
No, the line unavailable yada yada means there is something wrong microphone on your device. The JVM cannot access. Either you are trying to access in a blocking manner from multiple threads or it's not properly detected or something along those lines. It has nothing to do with the Speech API's underlying code except maybe in the Microphone class. Your microphone may also just not support the required format in which case you will need to tweak the audio format settings in the Microphone class.
Do note that no other application is using the microphone right now.
Here is my code:
Is it possible that this line of code
byte[] data=Files.readAllBytes(micra.getAudioFile().toPath());
may be the culprit?