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

real-time Audio data fetching using USB microphone

Jan 21, 2014 at 7:16 AM
Edited Jan 21, 2014 at 7:24 AM
Hello,

I was wondering if it is possible to write the code to fetch real-time audio data using multiple USB microphone using NAudio. If so, how would I do it? (I was looking at the sample code for Voice Recorder)

I am using C#.
WaveIn waveIn = new WaveIn(); => This line is throwing an exception (Use WaveInEvent to record on a background thread).
Any idea?

Thanks,
Jan 22, 2014 at 2:08 AM
Never mind. Figured out.
Feb 28, 2014 at 3:13 PM
s2moon wrote:
Hello,

I was wondering if it is possible to write the code to fetch real-time audio data using multiple USB microphone using NAudio. If so, how would I do it? (I was looking at the sample code for Voice Recorder)

I am using C#.
WaveIn waveIn = new WaveIn(); => This line is throwing an exception (Use WaveInEvent to record on a background thread).
Any idea?

Thanks,
I'm doing the same work now.

Can you tell me how to process the stream in real-time?

I have successfully recorded the voice into *.wav file.
Feb 28, 2014 at 3:23 PM
Actually, I want to draw a dynamic waveform figure of the voice. (It's in real-time)

The X axis is time, Y axis is frequency.

Maybe you can help me. Thanks!
Mar 3, 2014 at 10:35 AM
have a look at the WPF demo source code - it shows how to create a real-time spectrum analyser