java - Recognizer allocate Null Pointer Exception -
i trying convert speech text , im having no luck, imported jsapi jar project when run script get:
ava.lang.nullpointerexception @ claire.main(claire.java:13)
how change variable null , fix it?
public static void main(string[] args) { try { recognizer rec = central.createrecognizer(new enginemodedesc( locale.us)); rec.allocate(); } catch (exception e) { e.printstacktrace(); } }
the jsapi implementation you're using not support recognizer. check out createrecognizer
javadoc:
returns:
a recognizer matching required properties or null if none available
Comments
Post a Comment