【问题标题】:How could I only recognize certain phrases in CMU Sphinx?我怎么只能识别 CMU Sphinx 中的某些短语?
【发布时间】:2014-09-18 05:48:33
【问题描述】:

我有这样的语法:

#JSGF V1.0;

grammar actions;

public <item> = save this story | skip this story | stop the news;

但是,它可以识别远程匹配这些短语的所有内容。有没有办法让我只在他们真的说这句话时才认出来?

我目前正在使用这段代码来加载语法:

File actionsGrammar = new File(modelsDir, "grammar/actions.gram");
recognizer.addGrammarSearch("actions", actionsGrammar);

例如说save blah blah this blah blah story 不应该匹配,bake chris boring 也不应该匹配。谢谢!

【问题讨论】:

    标签: java android cmusphinx pocketsphinx-android


    【解决方案1】:

    是的,您可以在关键字发现模式下使用 pocketsphinx。 sphinx4 中还没有关键字定位模式。

    您可以在此处找到 Android 演示

    http://cmusphinx.sourceforge.net/wiki/tutorialandroid

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-14
      相关资源
      最近更新 更多