Hiii...I have a prob regarding Recognizer class..the problem is that it returns null after calling..like
rec = Central.createRecognizer(new EngineModeDesc("Microsoft English Recognizer v5.1, SAPI5, Microsoft",null,Locale.ENGLISH,Boolean.TRUE));
I have already installed SAPI 5.1 but don't know that is use of that.I am using eclipse Galileo as IDE in the option of configure buildpath I have already added all the external jars still problem is there...with null return
System.out.println(""+getLocale());
rec = Central.createRecognizer(new EngineModeDesc("Microsoft English Recognizer v5.1, SAPI5, Microsoft",null,Locale.ENGLISH,Boolean.TRUE));
EngineList e1 = Central.availableRecognizers(new EngineModeDesc(null));
System.out.println(e1);
if(rec==null)
System.out.println("Error Null Returned!");
rec.allocate();
reader=new FileReader(file);
the error is thrown at rec.allocate();
please reply if you know the solution :)
thanks in advance! |