简体   繁体   English

Open Ears API表示听到的每个声音都是一个字,甚至是咳嗽

[英]Open Ears API says every sound it hears is a word, even a cough

I am trying to use Open Ears for small part of my app. 我正尝试在我的应用程序的一小部分使用“开放式耳朵”。 I have three or four keywords that I want to be able to "listen" to. 我有三个或四个要“监听”的关键字。 Something like "Add", "Subtract", etc. I am just using the sample app found here. 诸如“添加”,“减”之类的东西。我只是使用此处找到的示例应用程序 I want to have a special case in the app when I here "Add" etc. as opposed to a word that is not one of my four keywords. 我想在应用程序中有一种特殊情况,当我在这里“添加”等时,而不是不是我的四个关键字之一的单词。 Right now I set my language to be only the four keywords, but whenever the Open Ears API hears anything, it picks between my four keywords. 现在,我将语言设置为仅四个关键字,但是只要Open Ears API听到任何声音,它就会在我的四个关键字之间进行选择。 So if I cough, it picks the closest word out of the four words 所以如果我咳嗽,它会从四个词中选出最接近的一个

How can I listen for a specific word without always choosing one of the keywords? 在不总是选择其中一个关键字的情况下,如何收听特定单词?

I was thinking I could have a whole bunch of words, a few hundred, and just check which word was spoken, and have a special case for my four keywords, but I don't want to have to type down each word. 我以为我可以有一大堆单词,几百个,只检查哪个单词,并为我的四个关键字设置特殊情况,但是我不想键入每个单词。 Does Open ears provide any default languages? Open Ears是否提供任何默认语言?

OpenEars developer here. OpenEars开发人员在这里。 Check out the dynamic grammar generation API that was just added in OpenEars 1.7 which may provide the right results for your requirements: http://www.politepix.com/2014/04/10/openears-1-7-introducing-dynamic-grammar-generation/ 请查看刚刚在OpenEars 1.7中添加的动态语法生成API,该API可能会为您的要求提供正确的结果: http : //www.politepix.com/2014/04/10/openears-1-7-introducing-dynamic-语法代/

This approach might be more suitable for keyword detection and detection of fixed phrases. 这种方法可能更适合关键字检测和固定短语检测。 Please bring further questions to the OpenEars forums if you'd like to troubleshoot them with me. 如果您想和我一起解决问题,请向OpenEars论坛提出更多问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM