android-docs-samples
android-docs-samples copied to clipboard
How to Stop Recognition
I use SpeechRecognitionClient examples for speech recognition. How do I stop active recognition? Here's the code I started identifying. mSpeechClient.streamingRecognizeCallable() .bidiStreamingCall()
I stop with the following code, an exception appears, and then I can't recognize it again.、 mAudioEmitter?.stop() mAudioEmitter = null
Abnormal information is as follows an error occurredio.grpc.StatusRuntimeException: CANCELLED: Failed to read message.
Actively stop recognizing if something needs to be done