监听关键字在任何时候都一样,[确定谷歌"在4.4 [英] Listening for keywords at all times, like "Ok google" on 4.4

查看:272
本文介绍了监听关键字在任何时候都一样,[确定谷歌"在4.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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有脱机识别哪一个更复杂一点。它不是在官方文件中提到,但你可以看到源代码<一href="http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android/4.3_r2.1/android/speech/srec/Recognizer.java">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.

这篇关于监听关键字在任何时候都一样,[确定谷歌&QUOT;在4.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆