/** Decodes the batch of audio files */
public void decode() throws IOException {
List<String> resultList = new LinkedList<String>();
Result result;
int startReference = 0;
hypothesisTranscript = new FileWriter(hypothesisFile);
recognizer.allocate();
while ((result = recognizer.recognize()) != null) {
numUtterances++;
String resultText = result.getBestResultNoFiller();
System.out.println("\nHYP: " + resultText);
System.out.println(" Sentences: " + numUtterances);
resultList.add(resultText);
for (WordResult wr : result.getTimedBestResult(false)) {
hypothesisTranscript.write(wr.toString());
hypothesisTranscript.write(' ');
}
hypothesisTranscript.write('\n');
hypothesisTranscript.flush();