phenomenon:
1) If I utter the commands which are defined in corpus.txt, sphinx print just
what I said.
2) If I say something else like "search", sphinx print "next". This isn't what
I expected. I want pocketsphinx_continuous shut up at this moment.
What should I do? May I achieve it by adding some option in the command line?
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I suppose you don't want to "shut up" them, you want to ignore the words which
aren't in grammar. That's a common problem usually referred as out-of-grammar
detection. First of all please take into account that pocketsphinx continuous
is more a demonstration application. It doesn't have all necessary things
done. We are working to make it better fit to applications. So you need to
modify the code in order to get the required behaviour. There are several
approaches which let you deal with OOG words:
Try to include as much as you can guess into the language model. Once garbage word is recognized reject it. Actually your grammar should be as rich as possible. Include "search" into grammar
Once the probable outcome is diverse, try to use confidence score to reject the words recognizer isn't confident in. You can get confidence score with ps_get_prob API function.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am a beginner of CMUSphinx. I don't know how to make pocketsphinx_continuous
shut up when I am saying words other than my voice commands.
testing steps:
1) follow the instruction from http://cmusphinx.sourceforge.net/wiki/tutorial
lm to create a corpus.txt
which contains only 5 words "next previous play pause exit".
2) Using online web tool http://www.speech.cs.cmu.edu/tools/lmtool.html to get 2 files: xxxx.ml and
xxxx.dic.
3) run pocketsphinx_continuous -hmm hub4wsj_sc_8k -lm 5631.lm -dict 5631.dic
phenomenon:
1) If I utter the commands which are defined in corpus.txt, sphinx print just
what I said.
2) If I say something else like "search", sphinx print "next". This isn't what
I expected. I want pocketsphinx_continuous shut up at this moment.
What should I do? May I achieve it by adding some option in the command line?
Thanks in advance
Hello.
I suppose you don't want to "shut up" them, you want to ignore the words which
aren't in grammar. That's a common problem usually referred as out-of-grammar
detection. First of all please take into account that pocketsphinx continuous
is more a demonstration application. It doesn't have all necessary things
done. We are working to make it better fit to applications. So you need to
modify the code in order to get the required behaviour. There are several
approaches which let you deal with OOG words:
Try to include as much as you can guess into the language model. Once garbage word is recognized reject it. Actually your grammar should be as rich as possible. Include "search" into grammar
Once the probable outcome is diverse, try to use confidence score to reject the words recognizer isn't confident in. You can get confidence score with ps_get_prob API function.
Thank you! nshmyrev!
I will try each of the approach you provided.
hey wangluheng..
you any any luck with your task?