Как SpeechRecognitionEngine может обнаружить ввод с микрофона не по умолчанию? - PullRequest
0 голосов
/ 13 мая 2019

Я использую SpeechRecognizationEngine для получения голоса пользователя и перехода к тексту.CurrentLt SpeechRecognitionEngine - это SetInputToDefaultAudioDevice ().Я хотел бы изменить это на любой микрофон не по умолчанию.

_recognizer = new SpeechRecognitionEngine();
  _recognizer.LoadGrammar(new DictationGrammar());
 _recognizer.SpeechRecognized += _recognizeSpeechAndWriteToConsole_SpeechRecognized; // if speech is recognized, call the specified method
  _recognizer.SpeechRecognitionRejected += _recognizeSpeechAndWriteToConsole_SpeechRecognitionRejected; // if recognized speech is rejected, call the specified method

 _recognizer.SetInputToDefaultAudioDevice(); // set the input to the default audio device

Есть ли способ добиться этого?

...