Hi,
for my speech application I need to use a Dynamic grammar.
I think that i should use edu.cmu.sphinx.jsapi.SphinxRecognizer class.
In this case how can i obtain a Result?
(no recognize method)
thanks.
ps:
sorry for my english and for my lack of experience.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The JSGFDemo.java file in demo/jsapi/jsgf gives some examples of how to do this. Search for the addRule method. In addition, the Sphinx-4 implementation should hopefully allow you to do the various things documented here:
Hi,
for my speech application I need to use a Dynamic grammar.
I think that i should use edu.cmu.sphinx.jsapi.SphinxRecognizer class.
In this case how can i obtain a Result?
(no recognize method)
thanks.
ps:
sorry for my english and for my lack of experience.
Here is a link to an example that may help you.
http://www.speech.cs.cmu.edu/cgi-bin/cmusphinx/twiki/view/Sphinx4/SwappingGrammars
Hi,
the example above is about a new grammar in a new file.
Is there a method to define a new grammar with a java object and not with a file?
thanks
Hi:
The JSGFDemo.java file in demo/jsapi/jsgf gives some examples of how to do this. Search for the addRule method. In addition, the Sphinx-4 implementation should hopefully allow you to do the various things documented here:
http://java.sun.com/products/java-media/speech/forDevelopers/jsapi-doc/javax/speech/recognition/RuleGrammar.html
Hope this helps,
Will