An open API service indexing awesome lists of open source software.

https://github.com/yuao/audioalignment

Estimation of audio alignment relative to a given reference.
https://github.com/yuao/audioalignment

audio audio-alignment audio-analysis fourier-transform spectrum

Last synced: 8 months ago
JSON representation

Estimation of audio alignment relative to a given reference.

Awesome Lists containing this project

README

          

# AudioAlignment

![](https://github.com/YuAo/AudioAlignment/workflows/Swift/badge.svg)

Estimation of audio alignment relative to a given reference, using shift-invariant fingerprints of the spectrum.

## Usage

```swift
import AudioAlignment

let sample = try AudioFingerprint(audioURL: URL(fileURLWithPath: "sample.m4a"))
let reference = try AudioFingerprint(audioURL: URL(fileURLWithPath: "reference.m4a"))
let timeOffset = try sample.align(with: reference).estimatedTimeOffset
```

## Documentation

[API Reference](https://yuao.github.io/AudioAlignment/documentation/audioalignment)

## Swift Package

To use this package in a SwiftPM project, add the following line to the dependencies in your Package.swift file:

```swift
.package(url: "https://github.com/YuAo/AudioAlignment.git", from: "1.0.0"),
```

## Performance

[Accelerate](https://developer.apple.com/documentation/accelerate/) is used to boost performance.

For a one-minute audio, the fingerprint generation takes approximately 60ms on a 2019 Intel iMac with i5 processor (in release mode).

## Acknowledgements

### Audio_Snippets_Alignment

[ranwsn/Audio_Snippets_Alignment](https://github.com/ranwsn/Audio_Snippets_Alignment)

### Dejavu

[worldveil/dejavu](https://github.com/worldveil/dejavu)

### Example Audio

Endless Light

by Siddhartha Corsus

https://creativecommons.org/licenses/by-nc/4.0/