运行 pocketsphinx_continuous 带有关键词

Run pocketsphinx_continuous with a keyphrase

我正在尝试使用 pocketsphinx 的关键词,但它一直在抛出错误,

ERROR: "kws_search.c", line 171: The word 'hey' is missing in the dictionary

虽然在字典里是100%。它是字典的重要组成部分,当我省略关键短语时它可以很好地识别该词。我用错了吗?没有我能找到的教程。一切都在使用 python 或 android.

pocketsphinx_continuous -hmm /usr/local/share/pocketsphinx/model/en-us/en-us -dict 9063.dic -lm 9063.lm -vad_threshold 3.0 -kws keyphrase.file -infile /dev/stdin

而 keyphrase.file 是

hey /1.0/

正确的命令行是:

pocketsphinx_continuous -vad_threshold 3.0 -kws keyphrase.file -infile /dev/stdin

不需要配置语言模型搜索模式的-lm-dict。您需要关键字搜索模式。当您使用 -dict 时,您将默认词典替换为包含 upper-case 个单词的词典。单词区分大小写。

教程是 here