android-docs-samples icon indicating copy to clipboard operation
android-docs-samples copied to clipboard

How to Stop Recognition

Open shaohui93 opened this issue 6 years ago • 0 comments

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

shaohui93 avatar Aug 12 '19 14:08 shaohui93