Android Speech Recognition Service

I have an Android app that uses Speech Recognition in Activity. The GUI does nothing but contain speech recognition objects. I would like to transfer this to the service so that I can talk to the application when it is running in the background.

However, as far as I know, the speech recognition service should use onActivityResult, inaccessible to Services. Is there a way to either contain an action in the service so that its graphical interface does not appear, or perform speech recognition in the service instead of activity?

+4
android speech-recognition speech-to-text
source share
2 answers

See Google Voice Search Speech Recognition Service - it may have useful links to information. I do not think that you can use voice recognition other than Gui, because the recognizer is revealed only as the intent of the recognizer.

I don’t think Google wants people to call this service directly, and it probably violates some terms of service, but you can check http://mikepultz.com/2011/03/accessing-google-speech-api-chrome -11 / to see the Chrome Speech Recognition service, which I suspect is similar to Android.

+2
source share

that if you have a service, activate the activity when it detects an incoming audio signal,

which acts like a widget that occupies only a small part of the screen or even one pixel, then causes voice recognition from invisible activity?

Just an idea, I don’t remember if the widget can be active, or if you can perform actions that do not occupy the screen.

+1
source share

All Articles