Compare two audio files in iOS

3.9k views Asked by At

I want to record two voices and compare them. I think there is some Apple sample code for voice recording. I have no idea about comparing two audio files. What is the right approach for this? Is there any framework Apple provides for this purpose or is there any third party framework?

2

There are 2 answers

0
eva On

I'm using Visqol for this purpose. If your audio files are generally not more than 10sek this could be something worth looking into. Also check ffmpeg library for converting the files into the desired format(Visqol will require certain sample rate depending if it is just music or speech). https://github.com/google/visqol

0
Dave On

It's not in objective C, but it does contain some fantastic explanation about how audio is compared by Shazam, and includes sample code (and source for a working application) in Java:

Check this out

Additionally, This Question has a fantastic link to audio fingerprinting, which is essentially the same as the article above, but more in depth.

Hope this helps