锁屏Android背后的语音识别 [英] Android Speech Recognition behind lock screen

查看:232
本文介绍了锁屏Android背后的语音识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用谷歌语音识别,收集来自用户的响应。我的应用程序被唤醒,讲给用户(在设备仍处于锁定状态)。在这一点上,我想从锁定屏幕后面收到语音命令,并用它做的东西在后台,无需触摸手机用户。什么此刻正在发生的是,醒来和文本到语音的东西是好的,但语音识别器将不会从锁定屏幕后面识别语音。这可能吗?

I'm using googles voice recognition to gather a response from a user. My application wakes up and 'speaks' to the user (while the device is still locked). At this point I want to receive a voice command from behind the lock screen and use it to do stuff in the background without the user having to touch the phone. What is happening at the moment is that the waking up and text-to-speech stuff is fine, but the speech recognizer won't recognise speech from behind the lock screen. Is this possible?

<一个href=\"http://developer.android.com/reference/android/speech/RecognizerIntent.html#ACTION_RECOGNIZE_SPEECH\" rel=\"nofollow\">http://developer.android.com/reference/android/speech/RecognizerIntent.html#ACTION_RECOGNIZE_SPEECH

推荐答案

CMUSphinx 是一个真正的溶液对这一问题。要做到这一点使用谷歌的语音识别API,你可能不得不求助于连续语音识别它需要太多的资源和排设备电池。

CMUSphinx is a real solution for this problem. To achieve this using google speech recognition api, you might have to resort to continuous speech recognition which takes too much resources and drains the device battery.

在另一方面,Pocketsphinx真正伟大的作品。它的速度不够快,发现一个关键短语和识别锁屏背后的语音命令的用户没有触摸自己的设备。它确实这一切下线。
 你可以试试<一个href=\"http://sourceforge.net/projects/cmusphinx/files/pocketsphinx/5$p$palpha/pocketsphinx-android-demo-5$p$palpha.tar.gz/download\"相对=nofollow>演示。

On the other hand, Pocketsphinx works really great. It's fast enough to spot a key phrase and recognize voice commands behind the lock screen without users touching their device. And it does all this offline. You can try the demo.

这篇关于锁屏Android背后的语音识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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