Is there a way to run SpeechRecognizer while being in a call? I have done it this way:
BroadcastReceiverhandles change in phone state (e.g. offhook).
SpeechRecognizeris started in the current (main) thread, as it can only be started in the main thread. The application context is used for the recognizer (the current context, given to the broadcast receiver, can't start be used)
But unfortunately, the person on the other side can't hear me (the speech recognition works fine though). In away, the recognizer has "consumed" my voice and doesn't send it over.
I'm aware that doing things in the main thread during call is dangerous, but is there a way to run the recognizer somehow during call?
Update: I am trying the
TelephonyManager listener instead of a
BroadcastReceiver, but some internal services blow with NPEs.