CIFEncoderOptions
Options & Configuration · AiDotNet.SpeechRecognition.ConformerFamily
Options for CIF (Continuous Integrate-and-Fire) encoder for soft monotonic alignment (Dong & Xu, 2020).
Inheritance: ModelOptions → CIFEncoderOptions
For Beginners
These options configure the CIFEncoder model. Default values follow the original paper’s recommended settings for optimal speech recognition accuracy.
Constructors
| Constructor | Summary |
|---|---|
CIFEncoderOptions() |
Initializes a new instance with default values. |
CIFEncoderOptions(CIFEncoderOptions other) |
Initializes a new instance by copying from another instance. |
Properties
| Property | Summary |
|---|---|
OnnxModelOptions OnnxOptions { get; set; } |
Gets or sets the ONNX Runtime settings used when the model is loaded from an ONNX file. |
double CifThreshold { get; set; } |
Gets or sets the accumulated weight at which the integrate-and-fire layer emits a token; must be at least 1. |
double DropoutRate { get; set; } |
Gets or sets the dropout probability of the native layers during training. |
int EncoderDim { get; set; } |
Gets or sets the hidden width of the encoder. |
int FeedForwardDim { get; set; } |
Gets or sets the inner width of each feed-forward block. |
int MaxAudioLengthSeconds { get; set; } |
Gets or sets the longest clip, in seconds, of the reference configuration. |
int NumAttentionHeads { get; set; } |
Gets or sets the number of heads in each attention layer. |
int NumEncoderLayers { get; set; } |
Gets or sets the number of encoder layers. |
int NumMels { get; set; } |
Gets or sets the number of mel filterbank channels in the input features. |
int SampleRate { get; set; } |
Gets or sets the sample rate, in Hz, that input audio is expected at. |
int VocabSize { get; set; } |
Gets or sets the number of output tokens the model predicts over. |
string Language { get; set; } |
Gets or sets the language code (for example “en”) reported for a transcript when none is passed or detected. |
string ModelPath { get; set; } |
Gets or sets the path of the pretrained ONNX model. |
string[] Vocabulary { get; set; } |
Gets or sets the token strings, indexed by token id, that native transcripts are spelled with. |