Hi I am working on one project and I have some trouble with comparison audio files. I have read a lot of articles about this problem but I couldn't find a good one working.

In my project I need to compare two audio events like gun shot, explosion, crying, breaking of glass, ... These files have max 5sec duration but it can be different. I store these in database and there will be more examples from one audio event. Users will load his .wav file (max 5sec) into program, and program shows all files in database where is similar with the uploaded audio event. What I need is recognize which audio event is it. For example if an user uploads some explosions, program will return all files including some kind of explosion. So I am not looking for exact match. I just need find out how similar is this file with these in database. I need it in some numbers , maybe in percentage, so I can tell the files which match 90% or more.

So what is the best technique to find this kind of similarity, which way is best for my case?

  • 1
    $\begingroup$ Please don't cross-post: stackoverflow.com/questions/22129371/… $\endgroup$ – Bjorn Roche Mar 2 '14 at 16:53
  • $\begingroup$ There are many possible approaches to this problem. You might want to take one of them, and then ask a more specific question about how it might be improved. $\endgroup$ – Peter K. Mar 18 '14 at 22:33

Maybe you are looking for something called "audio fingerprinting". This might employ DSP techniques, but in this form the question might be percieved as somewhat broad. There is no one correct algorithm of this kind, rather a bunch of good ideas that can be combined in different ways.

  • $\begingroup$ I have read about audio fingerprinting but its seems to me thats its find only exact match, in other words that can tell me only if the two signlas are exactly the same or not. Maybe corellation is a good way for me but I dont understand the result from it $\endgroup$ – Juraj Mar 4 '14 at 8:43
  • $\begingroup$ I wouldn't put it like that. $\endgroup$ – user7358 Mar 4 '14 at 9:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.