Does RecognitionListener.onError() automatically SpeechRecognizer.cancel()?

前端 未结 3 968
说谎
说谎 2021-02-14 01:01

For various reasons, I need to use the raw SpeechRecognizer API instead of the easier RecognizerIntent (RECOGNIZE_SPEECH) activity.

That means,

3条回答
  •  半阙折子戏
    2021-02-14 01:22

    Actually Femi, some of the error conditions DO stop the transcription service from listening (SpeechRecognizer.ERROR_SPEECH_TIMEOUT for example). It is not necessary to call destroy, just startlistening again.

提交回复
热议问题