我目前正在使用pocketphix演示(android和visual studio 2010),我已经配置了像这样的jsgf语法
#JSGF V1.0;
grammar Names;
public <popular> = muhammad | ahmed | maria | john | kelley | peter | jacob | jason;
Run Code Online (Sandbox Code Playgroud)
每当我说出正确的名字时,它在大多数情况下都会检测到它,但是当我说一个名字不在列表中时,它仍然匹配某些东西而我不想要或者至少能够检测到某些东西是否被认为不在语法中(可能是通过一些得分或口袋里的apix)
我相信pocketphinx有一些我不知道的地方.请指教.
谢谢,艾哈迈德
不,该功能尚未实现。欲了解更多详情,请参阅
http://cmusphinx.sourceforge.net/wiki/faq#qcan_pocketsphinx_reject_out-of-grammar_words_and_noises
您可以使用关键字识别模式来查找关键短语列表。您可以为每个短语配置激活阈值。