Capturing attributes about an audio sample

Oct 7, 2011 at 5: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!


Oct 17, 2011 at 9: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.