hi! i am trying to build an application which will recognize speech and convert into text.For that i have installed jdk 1.6, Apache ant 1.8, sphinx4-1.0beta3-src and also set the paths etc. i am able to run the demos like given in C:\Program Files\Java\sphinx4-1.0beta3-src\sphinx4-1.0beta3\bin\HelloWorld.jar using java -mx256m -jar bin/HelloWorld.jar which is already built classes but if i am trying to compile the java the same java program HelloWorld.java wiith its grammar.gram file its giving me errors
HelloWorld.java:1: package javax.speech does not exist
import javax.speech.*;
^
HelloWorld.java:2: package javax.speech.recognition does not exist
import javax.speech.recognition.*;
^
HelloWorld.java:6: cannot find symbol
symbol: class ResultAdapter
public class HelloWorld extends ResultAdapter {
^
HelloWorld.java:7: cannot find symbol
symbol : class Recognizer
location: class HelloWorld
static Recognizer rec;
^
HelloWorld.java:10: cannot find symbol
symbol : class ResultEvent
location: class HelloWorld
public void resultAccepted(ResultEvent e) {
^
HelloWorld.java:11: cannot find symbol
symbol : class Result
location: class HelloWorld
Result r = (Result)(e.getSource());
^
HelloWorld.java:11: cannot find symbol
symbol : class Result
location: class HelloWorld
Result r = (Result)(e.getSource());
^
HelloWorld.java:12: cannot find symbol
symbol : class ResultToken
location: class HelloWorld
ResultToken tokens[] = r.getBestTokens();
^
HelloWorld.java:27: cannot find symbol
symbol : class EngineModeDesc
location: class HelloWorld
new EngineModeDesc(Local
e.ENGLISH));
^
HelloWorld.java:26: cannot find symbol
symbol : variable Central
location: class HelloWorld
rec = Central.createRecognizer(
^
HelloWorld.java:34: cannot find symbol
symbol : class RuleGrammar
location: class HelloWorld
RuleGrammar gram = rec.loadJSGF(reader);
plz help me asap
thanx
^
11 errors