Cloudgarden's Discussion Board
Forums: Search: Several forums are available for people to post questions/comments about Java Speech or any of the CloudGarden products. As more messages are posted this discussion board should provide a useful, searchable, support database.
o AliceTalker (42)
o JSAPI Projects (69)
o Java Speech API (857)
o Jigloo GUI Builder for Eclipse (3322)
o SwingScroller (0)
o US Election 2004 (3)
Searches text and subject fields in all forums. The search matches as many words as possible. Don't use "AND" or "OR".
Latest "Java Speech API" Topics [ Start new "Java Speech API" Topic  ]

Cloudgarden Discussion Board  
This topic has 0 replies.       [ << Previous Topic | Start of Thread | >> Next Topic ]
Speech API Prob With null pointer exception
Author: Mitul
08/17/10 12:38 Reply
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!