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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -