IAudioFingerprinter<T>
Interfaces · AiDotNet.Interfaces
Interface for audio fingerprinting algorithms.
Known implementations: ASTModel<T>, AudioFingerprinterBase<T>, CLAPModel<T>, ConformerFP<T>, PANNsModel<T>, PeakNetFP<T>
For Beginners
An audio fingerprint is like a “signature” for a piece of audio. Just like human fingerprints identify individuals, audio fingerprints identify songs or sound recordings. Services like Shazam use fingerprinting to identify songs from short recordings.
How It Works
Audio fingerprinting creates compact representations of audio that can be used for identification and similarity matching. Different algorithms trade off between accuracy, speed, and robustness to transformations.
Properties
| Property | Summary |
|---|---|
int FingerprintLength { get; } |
Gets the fingerprint length in bits or elements. |
int SampleRate { get; } |
Gets the expected sample rate for input audio. |
string Name { get; } |
Gets the name of the fingerprinting algorithm. |
Methods
| Method | Summary |
|---|---|
AudioFingerprint<T> Fingerprint(Tensor<T> audio) |
Generates a fingerprint from audio data. |
AudioFingerprint<T> Fingerprint(Vector<T> audio) |
Generates a fingerprint from audio data. |
IReadOnlyList<FingerprintMatch> FindMatches(AudioFingerprint<T> query, AudioFingerprint<T> reference, int minMatchLength) |
Finds matching segments between two fingerprints. |
double ComputeSimilarity(AudioFingerprint<T> fp1, AudioFingerprint<T> fp2) |
Computes the similarity between two fingerprints. |