please help how completly run jsapi in netbeans . i tried the example for speech recognition but error is displayed. Some one who try it and get expected out put help .And also how to load the grammer file. i appriciet your help. thanks
That's a compiler error. javax.speech.EngineException is a checked exception, so you should follow the instructions in the error message: catch it (try-catch block) or add it to the throws clause of your method.
hello friends !!!
i fix the NPE error by running my program on diffirent PC .
i use You may be an all the neccerary steps for file reader
FileReader reader = new FileReader("C:/Documents and Settings/dawi2137/Desktop/hello.gram");
RuleGrammar gram = rec.loadJSGF(reader);
Now i get problem on FileReader like this
java.io.FileNotFoundException: C:\Documents and Settings\dawi2137\Desktop\hello.gram (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
how can i fix it?