Re: Comparing audio (wav) files
From: Corey Murtagh (emonk_at_slingshot.co.nz.no.uce)
Date: 10/05/03
- Next message: Zodiaq: "Re: DOS, how long?"
- Previous message: TLOlczyk: "Re: HOW TO PROTECT CD from copying."
- In reply to: aten: "Comparing audio (wav) files"
- Next in thread: Richard Heathfield: "Re: Comparing audio (wav) files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 05 Oct 2003 20:06:44 +1300
aten wrote:
> I'm writing a program that has a section that requires the comparison
> of two wav files. The sound files will be really small. I'm
> interested in sounds like a hand clap, or wood hitting wood, or wood
> striking tin. Little sounds. My section of the program would read two
> sound files into memory, apply some sonic algorithm on both. The
> output of that algorithm should be stored in some data structure. Then
> a comparison of the output would be made and would return some value
> to determine how closely one sound resembles the other, or at least if they
> matched. This program can be written in Java or C++. Are there in
> classes available that will allow me to implement what's describe
> above easily? I'm more concerned about the algorithm to extract
> frequency data, or whatever data is needed from the wav file to
> compare it to another. I'm trying to avoid re-inventing the wheel
> here, so if there is some package available that allows for this I
> would greatly appreciate any info on where to get it..
A quick google for 'FFT library' turns up a whole lot of interesting
source code, some of which might be useful to you. Something like FFTW
- a C library which should be easy to use from C++ - will get you
started on frequency analysis of your samples. You might want to do a
few such, starting with an overall frequency map if your samples are
small enough and perhaps do a sliding window series and search for
correlations between the samples - freq. peaks and troughs, etc.
Audio analysis is a complex task. Good luck with it :)
-- Corey Murtagh The Electric Monk "Quidquid latine dictum sit, altum viditur!"
- Next message: Zodiaq: "Re: DOS, how long?"
- Previous message: TLOlczyk: "Re: HOW TO PROTECT CD from copying."
- In reply to: aten: "Comparing audio (wav) files"
- Next in thread: Richard Heathfield: "Re: Comparing audio (wav) files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|