I am having an issue running HelloWorld with Sphinx4. I have done my best to follow the guides as much as possible. I have downloaded and installed all the required software (using Windows XP + NetBeans) and I get the following error message:
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)
Could anyone please provide any feedback on this issue and how to correct it?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Awesome, thanks alot for the advice! Works great!
I also tried it with eclipse after reading it was much easier to build Sphinx. I didn't have any troubles with it.
Thanks for the help again!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You forgot to build something important or add something important to classpath. I suggest you to use sphinx4 nighly archive (it's easier to build in netbeans) and see
Hello,
I am having an issue running HelloWorld with Sphinx4. I have done my best to follow the guides as much as possible. I have downloaded and installed all the required software (using Windows XP + NetBeans) and I get the following error message:
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)
Could anyone please provide any feedback on this issue and how to correct it?
Thanks
Awesome, thanks alot for the advice! Works great!
I also tried it with eclipse after reading it was much easier to build Sphinx. I didn't have any troubles with it.
Thanks for the help again!
You forgot to build something important or add something important to classpath. I suggest you to use sphinx4 nighly archive (it's easier to build in netbeans) and see
http://cmusphinx.svn.sourceforge.net/viewvc/cmusphinx/trunk/sphinx4/index.html#setupide
sorry for the delay. I'll fix the problem asap.
-Holger
Hi Mister Wizard,
fixed. please update your subversion copy.
Thanx for the bug report,
best regards,
Holger
I meant to say, it works great with Eclipse. I will try the NetBeans build in the next few days. Sorry for the confusion.
Cheers!