Speech recognition services in Android

I have an Android application that uses speech recognition in activity. The GUI does nothing except contain speech recognition objects. I want to port it to a service, so I can communicate with the application when running in the background

However, as far as I know, the speech recognition service must use onactivityresult, which is not applicable to the service. Is there a way to include an activity in the service so that its GUI is not displayed, or to perform speech recognition in the service instead of the activity?

resolvent:

Please refer to Google's voice search speech recognition service – it may contain some useful information links. I don't think you can do non GUI speech recognition because the recognizer is only disclosed as the recognizer

I don't think Google wants people to call this service directly. If you do, you may violate some terms of service, but please check it http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/ To see the service behind chrome speech recognition, I suspect it is similar to Android

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>