Menu

JSGFDemo Sphinx4-1.0beta5

Help
2010-10-29
2012-09-22
  • Andrew Durstewitz

    Hi, has anyone else had a problem running JSGFDemo in beta5? I keep getting an
    Invalid EngineState error.

    ============================
    Exception in thread "main" javax.speech.EngineStateError: Invalid EngineState: expected=( DEALLOCATED  DEALLOCATING_RESOURCES ) current state=( DEALLOCATED )
        at com.sun.speech.engine.BaseEngine.checkEngineState(BaseEngine.java:608)
        at com.sun.speech.engine.recognition.BaseRecognizer.getRuleGrammar(BaseRecognizer.java:298)
        at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:127)
        at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:87)
        at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:234)
        at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:95)
        at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:218)
        at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:97)
        at com.sun.speech.engine.recognition.RuleParser.mparse(RuleParser.java:64)
        at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:34)
        at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:29)
        at com.sun.speech.engine.recognition.BaseRuleGrammar.parse(BaseRuleGrammar.java:383)
        at edu.cmu.sphinx.demo.jsapi.jsgf.JSGFDemo.recognizeAndReport(JSGFDemo.java:146)
        at edu.cmu.sphinx.demo.jsapi.jsgf.JSGFDemo.loadAndRecognize(JSGFDemo.java:127)
        at edu.cmu.sphinx.demo.jsapi.jsgf.JSGFDemo.execute(JSGFDemo.java:92)
        at edu.cmu.sphinx.demo.jsapi.jsgf.JSGFDemo.main(JSGFDemo.java:239)
    
     
  • Nickolay V. Shmyrev

    Please try sphinx4 snapshot. This bug was fixed recently.

     
  • Andrew Durstewitz

    That worked, thanks!

     
  • R D

    R D - 2010-11-21

    This is still not working for me. I am using JSGFDdemo.jar revision 14 on
    Windows Vista. Could anyone plz let me know what might be the problem?

     
  • diogovn

    diogovn - 2010-12-16

    I get this error and i am using Vista too. But on XP it was working.
    Where can i found sphinx4 snapshot?

     
  • Nickolay V. Shmyrev

    You can find snapshot on downloads page:

    http://cmusphinx.sourceforge.net/wiki/download

     
  • diogovn

    diogovn - 2010-12-17

    Thanks!

     
  • Nischal Rao

    Nischal Rao - 2011-02-13

    I tried the above but I am getting a new error message now:

    Exception in thread "main" javax.speech.EngineStateError: Invalid engine
    state: DEALLOCATED
    at com.sun.speech.engine.BaseEngine.checkEngineState(BaseEngine.java:608)
    at com.sun.speech.engine.recognition.BaseRecognizer.getRuleGrammar(BaseRecogni
    zer.java:298)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:128)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:88)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:235)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:96)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:219)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:98)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:235)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:96)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:219)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:98)
    at com.sun.speech.engine.recognition.RuleParser.mparse(RuleParser.java:65)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:34)
    at com.sun.speech.engine.recognition.RuleParser.parse(RuleParser.java:29)
    at com.sun.speech.engine.recognition.BaseRuleGrammar.parse(BaseRuleGrammar.jav
    a:383)
    at myApp.main(myApp.java:82)

    Thanks in Advance.

     
  • Nickolay V. Shmyrev

    am getting a new error message now

    This is exactly the same bug as in the original post and which as fixed.
    Sorry, I don't quite understand what issue do you have.

     
  • Nischal Rao

    Nischal Rao - 2011-02-14

    Yeah, the exception is still the same but the message got changed.

    Anyway, I did use the snapshot and built it and used the JAR with my custom
    application and I am getting this error now.

     
  • Nickolay V. Shmyrev

    The message was changed on purpose. As for the exception itself, it tell you
    that you don't properly follow the API in your application. You need to
    allocate engine first before using it. It seems you are using engine without
    allocating it first.

     
  • Nischal Rao

    Nischal Rao - 2011-02-16

    I had forgotten to allocate the BaseRecognizer which was causing this error.
    Thanks for the help... :)

     

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.