We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
CMUSphinx 在 pocketsphinx 引擎中实现关键字识别,详细信息请参见 常见问题解答条目。
要识别单个关键词,您可以在“关键词搜索”模式下运行解码器。
从命令行尝试:
从代码:
您还可以在我们的源代码中找到 Python 和 Android/Java 的示例。 Python 代码如下所示,完整示例此处:
必须针对测试数据上的每个关键短语调整阈值,以获得漏检和误报之间的适当平衡。您可以尝试 1e-5 到 1e-50 等值。
为了获得最佳准确性,最好使用 3-4 个音节的关键短语。太短的短语很容易混淆。
您还可以搜索多个关键词,创建一个文件 keyphrase.list,如下所示:
并在带有 -kws 配置选项的解码器中使用它。
sphinx4 解码器尚未实现此功能。
CMUSphinx implements keyword spotting in pocketsphinx engine, see for details the FAQ entry.
To recognize a single keyphrase you can run decoder in “keyphrase search” mode.
From command line try:
From the code:
You can also find examples for Python and Android/Java in our sources. Python code looks like this, full example here:
Threshold must be tuned for every keyphrase on a test data to get the right balance missed detections and false alarms. You can try values like 1e-5 to 1e-50.
For the best accuracy it is better to have keyphrase with 3-4 syllables. Too short phrases are easily confused.
You can also search for multiple keyphrase, create a file keyphrase.list like this:
And use it in decoder with -kws configuration option.
This feature is not yet implemented in sphinx4 decoder.