You can retreive multiple results until the file end: (with the use of these codes)
while ((result = recognizer.getResult()) != null) {
System.out.println(result.getHypothesis());
}
So here is a snippet of my code from the program I am developing
"selectedFile" here is the wav file that the user picked. The problem here is that when the recognizer detects silence, it automatically stops transcribing even if there are still utterances after the silence.
I wanted to make the decoder transcribe till the end of the audio. Like if I have 5 minutes of audio
CMUSphinx tutorial said that
So here is a snippet of my code from the program I am developing
"selectedFile" here is the wav file that the user picked. The problem here is that when the recognizer detects silence, it automatically stops transcribing even if there are still utterances after the silence.
I wanted to make the decoder transcribe till the end of the audio. Like if I have 5 minutes of audio
Last edit: Leimiaoren 2016-01-14
This line:
must use
!=, not==. With your original code check indeed break and while loop terminates immediately after first utterance.