Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pocketsphinx how to determine out of grammar words

Tags:

cmusphinx

I am currently using pocketsphix demo (android and visual studio 2010) and I have configured a jsgf grammer like this

 #JSGF V1.0;
 grammar Names;
 public <popular> = muhammad | ahmed | maria | john | kelley | peter | jacob | jason; 

Whenever I say correct name, it detects it right in most cases but when I say a name not in the list, it still matches something and I do not want that or atleast be able to detect if something was said that was not in Grammar (may be through some score or api of pocketsphinx)

I am sure pocketsphinx has it somewhere which I don't know. Please advise.

Thanks, Ahmed

like image 233
Ahmed Avatar asked Nov 04 '22 17:11

Ahmed


1 Answers

No, this feature is not implemented. For more details see

http://cmusphinx.sourceforge.net/wiki/faq#qcan_pocketsphinx_reject_out-of-grammar_words_and_noises

You can use keyword spotting mode instead to look for a list of keyphrases. You can configure activation threshold for every phrase.

like image 56
Nikolay Shmyrev Avatar answered Dec 08 '22 20:12

Nikolay Shmyrev