How do you compare two wavrecord to a wavplay file?

1 view (last 30 days)
Basically, I was wondering how to compare a wav input of either a whistle or a spoken word to a two sample wav file to ascertain which it is most like. I was gonna fft the input but after that I am stumped with what to do. Am I at least on the right track? Can anyone help

Answers (1)

Eric
Eric on 6 Dec 2012
You can do a cross-correlation on the time-domain signals, and compare the max values, or do the equivalent in the frequency domain by doing a fft on the input, probably taking the absolute value to eliminate phase (unless phase is critical for your signals), and multiplying the recorded signal with the fft (also probably just magnitude spectrum) of your sample signals.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!