@hackage / align-audio

Find relative time displacement of two recordings of the same music

Latest0.0.0.2

About

Metadata

  • Last updated , by HenningThielemann
  • License BSD-3-Clause
  • Categories Audio
  • Maintained by: Henning Thielemann <haskell@henning-thielemann.de>

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 8.6.5

Package Flags

Use the -f option with cabal commands to enable flags

    blas (off by default)

    Build executable using BLAS support

    lapack (off by default)

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

Readme

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)