I have a grammar like this :
#JSGF V1.0;
grammar music;
public <command> = play | pause | next | previous;
When I used this grammar for the LiveSpeechRegconizer , it works fine .
And now I want to use this in the StreamSpeechRegconizer . In the Transcriber Demo on the source CMUSphinx example on github which used the StreamSpeechRecognizer,it's only show the way to detect speech with the whole dictionary . Is there a way to config just my own grammar?
To use grammar you need to properly create a Configuration object: