Follow me: @vaberer
I like ★. Do not forget to ★ this project.
Determining a time shift between two audio files.
The result of the function is a number in seconds:
Demnostration of finding time shift between two audio files in Objective-C compatible with iOS8.
Sample code contains two audio files i na Bundle in which we perform a cross-correlation and determine time shift is seconds.
We were recording a youtube song where the second audio - audio2.m4a
is shifted in 3 minutes.
The code is also optimalized by 50 times. We presume that sample rate and file formats of two audio files are equal.
Patrik Vaberer, [email protected]
LinkedIn
Blog
Thanks to: Tomas Milo
Audio Time Shifting is available under the MIT license. See the LICENSE file for more info.