ChromaprintFingerprinter<T>

Models & Types · AiDotNet.Audio.Fingerprinting

Chromaprint-style audio fingerprinter based on chroma features.

Inheritance: AudioFingerprinterBase<T> → ChromaprintFingerprinter<T>

For Beginners

Chromaprint works by analyzing the musical notes present in the audio. It groups all octaves of the same note together (C1, C2, C3 all become “C”) and tracks how these change over time. This makes it good at matching different recordings of the same song.

How It Works

This fingerprinter uses chromagram analysis similar to the Chromaprint algorithm used by AcoustID. It extracts chroma features and converts them to a compact binary representation that is robust to tempo changes and transposition.

Constructors

Constructor Summary
ChromaprintFingerprinter(ChromaprintOptions options) Creates a new Chromaprint fingerprinter.

Properties

Property Summary
string Name { get; } Gets the name of the fingerprinting algorithm.

Methods

Method Summary
AudioFingerprint<T> Fingerprint(Tensor<T> audio) Generates a fingerprint from audio vector.
AudioFingerprint<T> Fingerprint(Vector<T> audio) Generates a fingerprint from audio vector.
IReadOnlyList<FingerprintMatch> FindMatches(AudioFingerprint<T> query, AudioFingerprint<T> reference, int minMatchLength) Finds matching segments between fingerprints.
double ComputeSimilarity(AudioFingerprint<T> fp1, AudioFingerprint<T> fp2) Computes similarity between two fingerprints.