I am running into the following problem when running the sample programs for sphinx 4. Any ideas?
stanhope@sherman:~/Desktop/sphinx4-1.0beta/bin$ java -mx256m -jar HelloWorld.jar
Loading...
Problem configuring HelloWorld: Property Exception component:'flatLinguist' property:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGrammar
Property Exception component:'flatLinguist' property:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGrammar
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:414)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.java:248)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProperties(SimpleBreadthFirstSearchManager.java:180)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:71)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:93)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:49)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks but I still get the same errors. It's having issues finding some classes. I followed the instructions to install.
stanhope@sherman:~/Desktop/sphinx4-1.0beta/bin$ java -Xmx512m -jar HelloWorld.jar
Loading...
Problem configuring HelloWorld: Property Exception component:'flatLinguist' property:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGrammar
Property Exception component:'flatLinguist' property:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGrammar
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:414)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.java:248)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProperties(SimpleBreadthFirstSearchManager.java:180)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:71)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:93)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:49)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am running into the following problem when running the sample programs for sphinx 4. Any ideas?
stanhope@sherman:~/Desktop/sphinx4-1.0beta/bin$ java -mx256m -jar HelloWorld.jar
Loading...
Problem configuring HelloWorld: Property Exception component:'flatLinguist' property:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGrammar
Property Exception component:'flatLinguist' property:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGrammar
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:414)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.java:248)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProperties(SimpleBreadthFirstSearchManager.java:180)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:71)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:93)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:49)
Thanks but I still get the same errors. It's having issues finding some classes. I followed the instructions to install.
stanhope@sherman:~/Desktop/sphinx4-1.0beta/bin$ java -Xmx512m -jar HelloWorld.jar
Loading...
Problem configuring HelloWorld: Property Exception component:'flatLinguist' property:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGrammar
Property Exception component:'flatLinguist' property:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGrammar
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:414)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.java:248)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProperties(SimpleBreadthFirstSearchManager.java:180)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:71)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:93)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:49)
Hm, are you sure that sphinx4.jar was properly built? Did you unpack jsapi.jar?
-Xmx512m