align-audio: Find relative time displacement of two recordings of the same music

[ bsd3, program, sound ] [ Propose Tags ] [ Report a vulnerability ]

Say, you have a video with some background music and a clean recording of the background music. You want to know exact displacement of the background music. This program should find it.

align-audio orig.wav video.wav

The program actually performs a simple correlation.

The program can handle sources of different sample rates if the sample rates are integers.

You can specify the precision of the displacement using the --rate option, which must be a positive integer:

align-audio --rate 1000 orig.wav video.wav

For reading of audio files, libsox is used and thus you can use all audio formats supported by SoX.

Cabal-Flags:

  • blas for running with 'comfort-blas' (more memory consumption)

  • lapack for running with lapack (heavier dependency)

Flags

Manual Flags

NameDescriptionDefault
blas

Build executable using BLAS support

Disabled
lapack

Build executable using LAPACK support (less memory consumption than BLAS)

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0, 0.0.0.1, 0.0.0.2
Dependencies base (>=3 && <5), comfort-array (>=0.5 && <0.6), comfort-fftw (>=0.0 && <0.1), containers (>=0.2 && <0.9), netlib-ffi (>=0.1.1 && <0.2), numeric-prelude (>=0.4.1 && <0.5), optparse-applicative (>=0.11 && <0.20), shell-utility (>=0.0 && <0.2), soxlib (>=0.0.1 && <0.1), storablevector (>=0.2 && <0.3), Stream (>=0.4.7 && <0.5), synthesizer-core (>=0.7 && <0.10), utility-ht (>=0.0.12 && <0.1) [details]
Tested with ghc ==8.6.5
License BSD-3-Clause
Author Henning Thielemann <haskell@henning-thielemann.de>
Maintainer Henning Thielemann <haskell@henning-thielemann.de>
Uploaded by HenningThielemann at 2026-07-11T16:41:01Z
Category Sound
Source repo this: darcs get http://hub.darcs.net/thielema/align-audio/ --tag 0.0.0.2
head: darcs get http://hub.darcs.net/thielema/align-audio/
Distributions LTSHaskell:0.0.0.2, Stackage:0.0.0.2
Executables align-audio
Downloads 422 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2026-07-11 [all 2 reports]