Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I Compare 2 Audio Files Programmatically?

I want to compare 2 audio files programmatically. For example: I have a sound file in my iPhone app, and then I record another one. I want to check if the existing sound matches the recorded sound or not ( - similar to voice recognition).

How can I accomplish this?

like image 854
Shishir.bobby Avatar asked Aug 08 '11 08:08

Shishir.bobby


People also ask

How do I compare two audio files in audacity?

Re: Comparing two supposedly identical tracks. Import them both into Audacity. Apply the "Invert" effect to one of the tracks. Select both tracks, then from the "Tracks menu > Mix and Render". If the tracks were identical, the result will be silence.


Video Answer


2 Answers

Have a server doing audio fingerprinting computation that is not suitable for mobile device anyway. And then your mobile app uploads your files to the server and gets the analysis result for display. So I don't think programming language implementing it matters much. Following are a few AF implementations.

Java: http://www.redcode.nl/blog/2010/06/creating-shazam-in-java/

VC++: http://code.google.com/p/musicip-libofa/

C#: https://web.archive.org/web/20190128062416/https://www.codeproject.com/Articles/206507/Duplicates-detector-via-audio-fingerprinting

like image 109
Tae-Sung Shin Avatar answered Sep 21 '22 08:09

Tae-Sung Shin


I know the question has been asked a long time ago, but a clear answer could help someone else.

  1. The libraries from Echoprint ( website: echoprint.me/start ) will help you solve the following problems :

    • De-duplicate a big collection
    • Identify (Track, Artist ...) a song on a hard drive or on a server
    • Run an Echoprint server with your data
    • Identify a song on an iOS device

    PS: For more music-oriented features, you can check the list of APIs here.

  2. If you want to implement Fingerprinting by yourself, you should read the docs listed as references here, and probably have a look at musicip-libofa on Google Code

Hope this will help ;)

like image 22
Mehdi. Avatar answered Sep 22 '22 08:09

Mehdi.