 happy
|
hi Halle,
i’m trying to use jsgf as my application based on voice command. to make jsgf model itself, we must write down some rules. I’d like to apply some rules but however in your documentation it says that I cant change jsgf language model in between…
my question is,
can I change the dic only in between?
or can I choose what rule applies on jsgf file at some other state on my program?
thanks.
|
 Halle
|
You can select a different JSGF grammar every time you start the decoder, but you can’t switch grammars (or the accompanying .dic file) in the middle of using a decoder. Changing the phonetic dictionary it by itself would not cause any user-facing change in your app since it is the grammar or model that declares the words that the app is capable of perceiving. There is some experimental JSGF switching code here: http://www.politepix.com/forums/topic/how-to-try-out-pocketsphinx-7-with-openears/
|