How can i compare Audio, what programming language should i use

Posted by Pimmetje on Programmers See other posts from Programmers or by Pimmetje
Published on 2011-01-12T19:45:44Z Indexed on 2011/01/12 19:58 UTC
Read the original article Hit count: 212

Filed under:

I have 2 audio files that are from almost the same source. But at some points there shifted a bit. Also the codecs does not match.

I would like to make a program that takes a sample 2 - 4 seconds. And looks for it in the other file. (Most of the time it's not shifted more than 30 seconds). Than take the time and store it, Go ahead for a few seconds take a sample and find it again. This way i want to create a file where i can see on what points the file is shifted.

For people who are more interested in what i want. I have a audio/video file speech and subtitles. But i have same speech from different sources with differs a bit in time. And i like to make a program that can correct the subtitle time for me.

Enough about the problem

I looked on the Internet for ways to compare audio files. Based on what i read comparing 2 audio files isn't that easy as i had hoped.

Some talk about algorithms

http://www.perlmonks.org/?node_id=169641

Some audio-library's portaudio.com aubio.org sourceforge.net/projects/ccaudio/ ambiera.com/irrklang/

The biggest problem i have is that i can't find something i can generate from the audio that i can use to compare with.

I hope someone here can point me in the right direction.

© Programmers or respective owner

Related posts about comparison