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

Capturing attributes about an audio sample

Oct 7, 2011 at 6:05 AM

I'd like to be able to record an audio segment over the microphone and convert the segment into an array of data about the segment's wavelengths, amplitudes, and frequencies. Is NAudio a good tool to do this and could you help me out with a code sample? I believe it has something to do with converting it using FFT(?) but unfortunately I'm very new to this.

My ultimate goal would be to record a second audio segment over the microphone and compare the data points to determine if the two segment sound similar.

Thanks for any help you can give!

Adam

Oct 17, 2011 at 10:58 AM

NAudio will capture the audio as a set of PCM audio samples. To get information about frequencies you need to pass those samples into an FFT (using a windowing function first). It can be hard to understand if you are new to digital audio, but there are a lot of good articles about on FFTs.