Microsoft.Speech SpeechRecognitionEngine.setInputToDefaultAudioDevice() method throwing System.InvalidOperationException

前端 未结 1 1230
暗喜
暗喜 2021-01-06 17:08

I\'m using Microsoft.Speech (NOT System.Speech!) and I\'m trying to set the input of the audio stream to my microphone, which is the default audio device, but it is throwing

相关标签:
1条回答
  • 2021-01-06 17:38

    Based on limited information on the net, the situation is the following. Microsoft.Speech recognizer is recognizer for servers, like VXML servers and it might not support all audio devices and all input rates. For example, it might be that your audio driver does not support recording with low quality. So Microsoft.Speech might not accept your audio device.

    You need to use System.Speech API instead, it is designed for desktop API and should work.

    0 讨论(0)
提交回复
热议问题