WavLMSpeakerOptions
Options & Configuration · AiDotNet.Audio.Speaker
Configuration options for the WavLM Speaker verification and embedding model.
Inheritance: ModelOptions → WavLMSpeakerOptions
For Beginners
WavLM was originally trained to understand speech in general (like a language student who listens to lots of conversations). When specialized for speaker verification, it becomes excellent at recognizing individual voices because it already understands the deep structure of speech. It works especially well in noisy environments.
How It Works
WavLM (Chen et al., 2022) is a self-supervised speech model that, when fine-tuned for speaker verification, achieves state-of-the-art results with 0.59% EER on VoxCeleb1 test set. It uses a Transformer encoder pre-trained with masked speech prediction and denoising objectives, making it robust to noisy conditions.
Constructors
| Constructor | Summary |
|---|---|
WavLMSpeakerOptions() |
Properties
| Property | Summary |
|---|---|
OnnxModelOptions OnnxOptions { get; set; } |
Gets or sets the ONNX runtime options. |
double DefaultThreshold { get; set; } |
Gets or sets the default cosine similarity threshold. |
double DropoutRate { get; set; } |
Gets or sets the dropout rate. |
double LearningRate { get; set; } |
Gets or sets the learning rate. |
double MinDurationSeconds { get; set; } |
Gets or sets the minimum audio duration in seconds. |
double WeightDecay { get; set; } |
Gets or sets the weight decay. |
int EmbeddingDim { get; set; } |
Gets or sets the output speaker embedding dimension. |
int FeatureEncoderDim { get; set; } |
Gets or sets the feature encoder dimension (CNN output). |
int FeedForwardDim { get; set; } |
Gets or sets the feed-forward hidden dimension. |
int FftSize { get; set; } |
Gets or sets the FFT window size. |
int HiddenDim { get; set; } |
Gets or sets the Transformer hidden dimension. |
int HopLength { get; set; } |
Gets or sets the hop length between frames. |
int NumAttentionHeads { get; set; } |
Gets or sets the number of attention heads. |
int NumLayers { get; set; } |
Gets or sets the number of Transformer layers. |
int NumMels { get; set; } |
Gets or sets the number of mel filterbank channels. |
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. |
string PoolingStrategy { get; set; } |
Gets or sets the pooling strategy (“mean”, “stats”, or “attentive”). |
string Variant { get; set; } |
Gets or sets the model variant (“base” or “large”). |