Is there a way to start SpeechRecognizer during a call? I did it as follows:
BroadcastReceiver handles a change in the state of the phone (e.g., disconnect).SpeechRecognizerstarts in the current (main) thread, since it can only be started in the main thread. The application context is used for the resolver (the current context provided to the broadcast receiver cannot be used)
But, unfortunately, the person on the other hand does not hear me (speech recognition works fine). In the distance, the recognizer “swallowed” my voice and does not send it.
I know that doing things in the main thread during a call is dangerous, but is there a way to start the recognizer in some way during a call?
Update: I'm trying to listen TelephonyManagerinstead BroadcastReceiver, but some internal services are being removed from NPE.
Bozho source
share