the above example is not working for some reason and returns the Illigal State Exception: Expected state Ready Actual State Deallocated, error when trying to configure the speach recogniser. Any ideas on how to fix that?
[Voce] Initializing synthesizer
[Voce] Initializing recognizer. This may take some time...
[Voce ERROR] Cannot configure speech recognizer:
Property Exception component:'jsgfGrammar' property:'grammarLocation' - value (C:\Users\I\Desktop\VoiceRecognition\VoiceRecognition/data/) is not a valid Resource
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.setRaw(ValidatingPropertySheet.java:137)
at edu.cmu.sphinx.util.props.ConfigurationManager.setProperty(ConfigurationManager.java:250)
at voce.SpeechRecognizer.<init>(SpeechRecognizer.java:85)
at voce.SpeechInterface.init(SpeechInterface.java:79)
at VoiceRecognition.setup(VoiceRecognition.java:83)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
[Voce] Initialization complete
Exception in thread "Animation Thread" java.lang.NullPointerException
at voce.SpeechRecognizer.getQueueSize(SpeechRecognizer.java:152)
at voce.SpeechInterface.getRecognizerQueueSize(SpeechInterface.java:149)
at VoiceRecognition.draw(VoiceRecognition.java:88)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Recognition thread" java.lang.IllegalStateException: Expected state Ready actual state Deallocated
at edu.cmu.sphinx.recognizer.Recognizer.checkState(Recognizer.java:147)
at edu.cmu.sphinx.recognizer.Recognizer.recognize(Recognizer.java:113)
at edu.cmu.sphinx.recognizer.Recognizer.recognize(Recognizer.java:135)
at voce.SpeechRecognizer.run(SpeechRecognizer.java:129)
at java.lang.Thread.run(Thread.java:662)