EfficientConformerOptions
Options & Configuration · AiDotNet.SpeechRecognition.ConformerFamily
Options for Efficient Conformer with progressive downsampling (Burchi & Vielzeuf, 2021).
Inheritance: ModelOptions → EfficientConformerOptions
For Beginners
These options configure the EfficientConformer model. Default values follow the original paper’s recommended settings for optimal speech recognition accuracy.
Constructors
| Constructor | Summary |
|---|---|
EfficientConformerOptions() |
Initializes a new instance with default values. |
EfficientConformerOptions(EfficientConformerOptions 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. |
bool UseLayerNormalization { get; set; } |
Gets or sets whether the native encoder replaces its BatchNorm stages with LayerNorm. |
double DropoutRate { get; set; } |
Gets or sets the dropout probability of the native layers during training. |
double LearningRateFactor { get; set; } |
Gets or sets the multiplicative factor for the Transformer learning-rate schedule. |
double WeightDecay { get; set; } |
Gets or sets Adam’s coupled L2 weight decay. |
int ConvKernelSize { get; set; } |
Gets or sets the Conformer depthwise-convolution kernel size. |
int DownsamplingFactor { get; set; } |
Gets or sets the total time downsampling applied across the encoder stages: 1, 2, 4 or 8. |
int EncoderDim { get; set; } |
Gets or sets the first-stage width. |
int FeedForwardExpansionFactor { get; set; } |
Gets or sets the inner width of each feed-forward block as a multiple of the encoder width. |
int InitialAttentionGroupSize { get; set; } |
Gets or sets projected-frame attention grouping in the first encoder stage. |
int MaxAudioLengthSeconds { get; set; } |
Gets or sets the longest clip, in seconds, of the reference configuration. |
int NumAttentionHeads { get; set; } |
Gets or sets the attention head count used in all three stages. |
int NumEncoderLayers { get; set; } |
Gets or sets the encoder block count. |
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. |
int WarmupSteps { get; set; } |
Gets or sets the number of Transformer learning-rate warmup steps. |
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. |