This project has moved and is read-only. For the latest updates, please go here.

System.IO.Streams via WASAPI

Mar 3, 2011 at 9:14 PM

I'm working on a project that makes use of System.Speech.Recognition.SpeechRecognitionEngine and System.Speech.Synthesis.SpeechSynthesizer, and want to use NAudio to grab the available microphones and speakers via WASAPI.  I can grab the appropriate MMDevice that I want to use for the speaker or microphone, but the issue I'm running into is retrieving a stream (or piping the data to an appropriate stream) to to pass along to the SpeechRecognitionEngine.SetAudioInputStream() or SpeechSynthesizer.SetOutputToWaveStream().  I've tried a few different approaches but nothing seems to get piped along.

Any pointers (or semi-full solution, if somebody's already tackled this...) are greatly appreciated.

Mar 7, 2011 at 5:17 PM

I'm afraid this is something I haven't tried yet. Would be interested in hearing if you ever get this working though.

Mark

Jun 15 at 5:48 PM
Edited Jun 15 at 5:48 PM
Hi, i'm facing the same problem, have you find any solution?

Agent_9191 wrote:
I'm working on a project that makes use of System.Speech.Recognition.SpeechRecognitionEngine and System.Speech.Synthesis.SpeechSynthesizer, and want to use NAudio to grab the available microphones and speakers via WASAPI.  I can grab the appropriate MMDevice that I want to use for the speaker or microphone, but the issue I'm running into is retrieving a stream (or piping the data to an appropriate stream) to to pass along to the SpeechRecognitionEngine.SetAudioInputStream() or SpeechSynthesizer.SetOutputToWaveStream().  I've tried a few different approaches but nothing seems to get piped along. Any pointers (or semi-full solution, if somebody's already tackled this...) are greatly appreciated.