audio-offset-finder

Find the offset of an audio file within another audio file


License
Apache-2.0
Install
pip install audio-offset-finder==0.3.0

Documentation

audio-offset-finder

A simple tool for finding the offset of an audio file within another file.

Uses cross-correlation of standardised Mel-Frequency Cepstral Coefficients, so should be relatively robust to noise (encoding, compression, etc).

It uses ffmpeg for transcoding, so should work on all file formats supported by ffmpeg.

Installation

$ pip install audio-offset-finder

Usage

$ audio-offset-finder --help
$ audio-offset-finder --find-offset-of file1.wav --within file2.wav
Offset: 300 (seconds)

Testing

$ nosetests

Licensing terms and authorship

See 'COPYING' and 'AUTHORS' files.

The audio file used in the tests was downloaded from Wikimedia Commons, and was originally extracted from the 9 July 2008 episode of the BBC Today programme.