如何可靠地拒绝外的gramar词语PocketSphinx词语、可靠、gramar、PocketSphinx

2023-09-06 16:33:47 作者:落影执迷离

我使用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

南澳有啥好去的 维州欲开边境惨遭拒,州长带头搞起 地域黑 昔日尖子生变吊车尾,还被网民玩坏了...

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

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

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

 <结果> =字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/

 
精彩推荐
图片推荐