Menu

Sphinx 4 Error

Help
2008-11-11
2012-09-22
  • Austin Stanhope

    Austin Stanhope - 2008-11-11

    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)

     
    • Austin Stanhope

      Austin Stanhope - 2008-11-12

      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)

       
      • Nickolay V. Shmyrev

        Hm, are you sure that sphinx4.jar was properly built? Did you unpack jsapi.jar?

         
    • Nickolay V. Shmyrev

      -Xmx512m

       

Log in to post a comment.