Speech Recognition Service in Android

别等时光非礼了梦想. 提交于 2019-12-03 16:34:39
Michael Levy

See Google's voice search speech recognition service - it might have some useful links to information. I don't think you can do non-Gui voice recognition because the recognizer is only exposed as the recognizer intent.

I don't think that Google wants people to call this service directly, and it likely violates some terms of service somewhere if you do, but check out http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/ to see the service behind Chrome speech recognition which I suspect is similar to Android.

what if you have your service wake up an activity when it detects any incoming audio signal,

that acts like a widget only taking up a small part of the screen or even just a single pixel, then call voice recognition from the invisible activity?

Just an idea, I don't remember if a widget can be an activity or if you can make an activity that doesn't take up the screen.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!