I am currently using the example given. The model is created. I am using the smaller version of the English model from the website. The error gives no information.
try (Model model = new Model("/data/models/en-us");
Recognizer recognizer = new Recognizer (model, 16000)) {
int nbytes;
byte[] b = new byte[4096];
while ((nbytes = is.read(b)) >= 0) {
if (recognizer.acceptWaveForm(b, nbytes)) {
recognizer.getResult();
} else {
recognizer.getPartialResult();
}
}
result = recognizer.getFinalResult();
}
I am currently using the example given. The model is created. I am using the smaller version of the English model from the website. The error gives no information.