Menu

Sphinx4 - HelloWolrd Help Pls?

Help
2008-08-09
2012-09-22
  • Mister Wizard

    Mister Wizard - 2008-08-09

    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

     
    • Mister Wizard

      Mister Wizard - 2008-08-12

      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!

       
    • Nickolay V. Shmyrev

      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

       
    • Holger Brandl

      Holger Brandl - 2008-08-11

      sorry for the delay. I'll fix the problem asap.

      -Holger

       
    • Holger Brandl

      Holger Brandl - 2008-08-11

      Hi Mister Wizard,

      fixed. please update your subversion copy.

      Thanx for the bug report,
      best regards,
      Holger

       
    • Mister Wizard

      Mister Wizard - 2008-08-12

      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!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.