It works, but only If I speak at "normal" speed. If I talk slowly, Pocketsphinx checks only the first word, then compares with the grammar and return an "ERROR: Final result does not match the grammar". Which is ok.
The thing is, there is a parameter to allow pocketsphinx wait more time of silence until the next word?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is not a proper approach to enforce the grammar, it harms both accuracy and parsing. We do not recommend using grammars overall, or use simple lists. You need to build semantic parser on top of recognition results, it is not a good idea to embed semantic parser into recognizer.
Mmm for the moment, Ive ditched the grammar in favor of the Kws thingy. But still i have the same doubt. When using phrases, is it possible to tell Pocketsphinx to wait more time during a silence, for the next word?
klatu berata nikto /1e-50/
The idea is to make pocketsphinx wait a few seconds between klatu and berata, for example.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I have a grammar like this:
It works, but only If I speak at "normal" speed. If I talk slowly, Pocketsphinx checks only the first word, then compares with the grammar and return an "ERROR: Final result does not match the grammar". Which is ok.
The thing is, there is a parameter to allow pocketsphinx wait more time of silence until the next word?
This is not a proper approach to enforce the grammar, it harms both accuracy and parsing. We do not recommend using grammars overall, or use simple lists. You need to build semantic parser on top of recognition results, it is not a good idea to embed semantic parser into recognizer.
For more details you can read:
http://cmusphinx.sourceforge.net/2014/05/openears-introduces-easy-grammars-for-pocketsphinx/
https://github.com/cmusphinx/pocketsphinx/issues/13
Mmm for the moment, Ive ditched the grammar in favor of the Kws thingy. But still i have the same doubt. When using phrases, is it possible to tell Pocketsphinx to wait more time during a silence, for the next word?
klatu berata nikto /1e-50/
The idea is to make pocketsphinx wait a few seconds between klatu and berata, for example.
It is not possible and not recommended.