是否可以暂停和恢复Microsoft Cognitive SpeechRecognizer?

时间:2020-06-23 19:47:08

标签: text-to-speech microsoft-cognitive

我正在使用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);

感谢您的帮助!

0 个答案:

没有答案
相关问题