Hi there.
I'm developing a little tool to automatically sync two audio
recordings of the same event made with two different recorders. I've
got the algorithms worked out and can correctly compute the drift and
offset between the files in my test recording. The next step is to
pad, stretch and mix the two files into one perfectly synced stereo
file.
The drift is very small. In my test recording the drift is only 53
milliseconds over the course of an hour. My stretch factor is
0.99998525762821
I've tried to stretch the file with sox:
sox infile.wav outfile.wav stretch 0.99998525762821
When I try to line up the files in a ardour I realise that the stretch
sox makes is hugely inaccurate.
For testing purposes I tried to stretch an hourly long file (44.1kHz)
by some 2000 samples, but the resulting file was some 30000 samples
longer. The stretch was off by more than 0.5 seconds!
Is there anything I can do to increase the accuracy of sox? Is there
any other tool out there that will do a better job at stretching with
very high accuracy?
alex
--
Alex Polite
http://flosspick.org - finding the right open source