Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

How to Stop Recognition #111

Open
shaohui93 opened this issue Aug 12, 2019 · 0 comments
Open

How to Stop Recognition #111

shaohui93 opened this issue Aug 12, 2019 · 0 comments

Comments

@shaohui93
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant