我正在使用https://github.com/Azure-Samples/cognitive-services-speech-sdk中的Microsoft认知服务语音SDK的JavaScript版本。
我想暂停识别器,以便它不会处理来自TTS音频的响应。 我可以调用stopContinuousRecognitionAsync()停止它,然后再次创建一个新实例,但是使识别器再次可用很慢。
是否可以暂停和恢复Microsoft Cognitive SpeechRecognizer?
this.speechConfig.enableDictation();
this.audioConfig = SpeechSDK.AudioConfig.fromDefaultMicrophoneInput();
this.recognizer = new SpeechSDK.SpeechRecognizer(this.speechConfig, this.audioConfig);
感谢您的帮助!