PeakNetFPOptions
Options & Configuration · AiDotNet.Audio.Fingerprinting
Configuration options for the PeakNetFP spectral peak-based fingerprinting model.
Inheritance: ModelOptions → PeakNetFPOptions
For Beginners
PeakNetFP identifies songs by finding the “peaks” in their sound spectrum (like the loudest frequencies at each moment) and then uses AI to turn those peaks into a compact code. It’s a hybrid approach that combines classical Shazam-like peak picking with modern neural network encoding.
How It Works
PeakNetFP combines traditional spectral peak picking with a neural network for robust audio fingerprinting. It detects spectral peaks in the spectrogram and uses a CNN to encode peak constellations into compact binary hashes, offering both speed and robustness.
Constructors
| Constructor | Summary |
|---|---|
PeakNetFPOptions() |
Properties
| Property | Summary |
|---|---|
OnnxModelOptions OnnxOptions { get; set; } |
Gets or sets the ONNX runtime options. |
double DropoutRate { get; set; } |
Gets or sets the dropout rate. |
double LearningRate { get; set; } |
Gets or sets the learning rate. |
double MatchThreshold { get; set; } |
Gets or sets the cosine similarity threshold for considering a fingerprint match. |
double SegmentDurationSec { get; set; } |
Gets or sets the segment duration in seconds. |
double Temperature { get; set; } |
Gets or sets the contrastive loss temperature. |
int BaseFilters { get; set; } |
Gets or sets the base filter count. |
int EmbeddingDim { get; set; } |
Gets or sets the fingerprint embedding dimension. |
int FftSize { get; set; } |
Gets or sets the FFT window size. |
int HopLength { get; set; } |
Gets or sets the hop length between frames. |
int NumEncoderBlocks { get; set; } |
Gets or sets the number of encoder blocks. |
int NumMels { get; set; } |
Gets or sets the number of mel filterbank channels. |
int PeakNeighborhood { get; set; } |
Gets or sets the peak neighborhood size for non-max suppression. |
int PeaksPerFrame { get; set; } |
Gets or sets the number of spectral peaks to select per frame. |
int SampleRate { get; set; } |
Gets or sets the expected audio sample rate in Hz. |
string ModelPath { get; set; } |
Gets or sets the path to the ONNX model file. |