采用Android语音控制启动我的活动 [英] Using Android Voice Control launch my Activity
问题描述
我读<一href="http://stackoverflow.com/questions/6316937/how-can-i-use-speech-recognition-without-the-annoying-dialog-in-android-phones">this张贴在SO,我已经试过了code,推出自己的语音识别活动。有效!。所以我的问题是,我怎么可以自定义内置的语音命令按钮(硬件)的行动,发动这是我写的,而不是内置的语音搜索的活动?我已经彻底搜查了网,包括本网站。但我无法找到一个解决方案。我知道有人在等具有它!
I have read this post on SO and I have tried the code to launch my own speech recognition activity. It worked!. So my question is that how can I customize the action of the built in voice command button(hardware) to launch the activity which I have written instead of the built in voice search? I have thoroughly searched the net including this website. But I could not find a solution. I know that someone on SO has it!!!
推荐答案
您必须使用 SpeechRecognizer
而不是 RecognizerIntent
。这是一个有点很难使用,但你得到完全控制。
You must use SpeechRecognizer
instead of RecognizerIntent
. It's a little harder to use, but you get full control.
有关code看到<一个我的回应href="http://stackoverflow.com/questions/9625045/speech-recognition-help/9631708#9631708">here:
和这里的两种方法之间的差异我
这篇关于采用Android语音控制启动我的活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!