监听关键字在任何时候都一样,[确定谷歌"在4.4关键字、时候、QUOT

2023-09-05 00:33:59 作者:★把心丟到海しǐ喂鱼ㄦ

我已经签了新奇巧库,以确保我没有失去了一些东西。我想我的应用程序始终执行操作前,听一个关键字,就像谷歌如何现在始终侦听关键字好吧谷歌在主屏幕上。

I've checked the new Kitkat libraries to make sure that I'm not missing something. I want my application to always listen to a keyword before performing an action, just like how Google Now always listens for the keywords "Ok google" on the homescreen.

谷歌是如何做到这一点?

How did Google accomplish this?

推荐答案

您需要什么叫关键词检测。除了在线语音API Android有脱机识别哪一个更复杂一点。它不是在官方文件中提到,但你可以看到源代码here,例如。我不知道你会发现关键词识别存在,但至少你将有机会获得低级别的识别器的接口。

What you need is called keyword spotting. Apart from online speech API Android has offline recognizer which is a bit more sophisticated. It is not mentioned in official documentation, but you can see the sources here, for example. I'm not sure you will find keyword spotting there, but at least you will have access to low-level recognizer interfaces.

您也可以留意 CMUSphinx 项目的进展情况。我们已经拥有了完整的识别Android和将添加语音活动检测和关键词定位很快。

You can also watch for the progress of CMUSphinx project. We already have complete recognizer for Android and are going to add voice activity detection and keyword spotting soon.