audio_time_shifting icon indicating copy to clipboard operation
audio_time_shifting copied to clipboard

Determine time shift between two audio files

Audio Time Shifting

Font Awesome Swift

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.

Author

Patrik Vaberer, [email protected]
LinkedIn
Blog

Thanks to: Tomas Milo

Licence

Audio Time Shifting is available under the MIT license. See the LICENSE file for more info.