本文介绍了如何可靠地拒绝外的gramar词语PocketSphinx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用PocketsphinxDemo成功地在Android上。我有一组单词非常有限的被认可,说3个不同的字。目前,我得到很多误报 - 边说着,Pocketsphinx承认我的3个词之一,虽然他们还没有被说过

由于我找不到pocketsphinx正在使用的参数的任何引用,这里是我的问题:

有一个参数,使Pocketsphinx反应更严格?

我希望它返回它的识别猜只有Pocketsphinx是高度确定,以配合正确的单词。

下面是我目前使用的是默认参数:

  c.setFloat( -  samprate,8000.0);
c.setInt( -  maxhmmpf,2000年);
c.setInt( -  maxwpf,10);
c.setInt( -  pl_window,2);
c.setBoolean( - 回溯,真正的);
c.setBoolean( -  bestpath,假);
 

解决方案

有对超出语法词语的pocketpshinx简单的拒绝不支持,现在,尽管它可能很快就会出现。对于一些详细信息,请参阅

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

您仍然可以效仿外的语法单词,手机圈,并且可以给你一些排斥反应。对于需要构建语法以特殊的方式,并添加垃圾的手机在那里。欲了解更多详情,请参见

语法格式拧在那里,但这个想法很简单,你只需要添加手机的循环:

 <结果> =字1 | WORD2 | (PHONE1 | PHONE2 | .... |电话39)*
 

有关IPhone Openears实施拒绝一个特殊的模块,它不是主要经销的一部分:

http://www.politepix.com/rejecto/

I am using PocketsphinxDemo successfully on Android. I have a very limited set of words to be recognized, say 3 different words.I currently get lots of false positives - while talking, Pocketsphinx recognizes one of my 3 words although they have not been spoken.

As I can't find any reference for the parameters pocketsphinx is using, here's my question:

Is there a parameter to make Pocketsphinx react more restrictive?

I want it to return its recognition guess only if Pocketsphinx is highly "sure" to match the correct word.

Here are the default parameters I am currently using:

c.setFloat("-samprate", 8000.0);
c.setInt("-maxhmmpf", 2000);
c.setInt("-maxwpf", 10);
c.setInt("-pl_window", 2);
c.setBoolean("-backtrace", true);
c.setBoolean("-bestpath", false);
解决方案

There is no support for simple rejection of out-of-grammar words in pocketpshinx right now, though it might appear soon. For some more information see

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

You still can emulate out-of-grammar words with phone loop and that can give you some rejection. For that you need to construct grammar in a special way and add garbage phones there. For more details see

http://sourceforge.net/p/cmusphinx/discussion/help/thread/1c6cb941/?limit=50#efa9

The grammar formatting is screwed there, but the idea is simple, you just add phones in the loop:

 <result> = word1 | word2 | (phone1 | phone2 | .... | phone 39)*

For IPhone Openears implement a special module for rejection, it's not a part of main distribution:

http://www.politepix.com/rejecto/

这篇关于如何可靠地拒绝外的gramar词语PocketSphinx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 22:41