Published on

Warpdrive: Python audio sync tool using Dynamic Time Warping

Authors
  • avatar
    Name
    Darren Sholes
    Twitter

I developed a command line tool, warpdrive for syncing and aligning audio recorded from multiple sources. The tool leverages the Dynamic Time Warping (DTW) implementation found in the librosa library. I used this tool while recording a demo album with four upcycled smarphones.

I use the output from the DTW to build a psuedo-histogram of time offsets between chroma features of the various recordings. I then choose a base signal and pad the rest of the signals with the appropriate time delay to align all signals. See the source code here.

See an example below: