FastConformerOptions

Options & Configuration · AiDotNet.Audio.SpeechRecognition

Configuration options for the Fast Conformer speech recognition model.

Inheritance: ModelOptions → FastConformerOptions

For Beginners

Fast Conformer is NVIDIA’s speed-optimized version of the Conformer. It compresses audio early on (8x downsampling) so the expensive transformer layers process much shorter sequences. Think of it as reading a summary instead of the full book - same information, much faster processing.

How It Works

Fast Conformer (Rekesh et al., 2023, NVIDIA NeMo) is an optimized Conformer variant with 8x depthwise-separable convolution downsampling in the front-end, reducing the sequence length early and enabling efficient processing of long audio. Combined with multi-blank CTC or RNN-T, it achieves 2.4x speedup over standard Conformer with no accuracy loss.

Constructors

Constructor Summary
FastConformerOptions() Initializes a new instance with the paper configuration defaults.
FastConformerOptions(FastConformerOptions other) Initializes an independent copy of an existing configuration.

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.
int ConvKernelSize { get; set; } Gets or sets the convolution kernel size.
int DownsampleFactor { get; set; } Gets or sets the front-end downsampling factor.
int EncoderDim { get; set; } Gets or sets the encoder hidden dimension.
int FeedForwardDim { get; set; } Gets or sets the feed-forward dimension.
int NumHeads { get; set; } Gets or sets the number of attention heads.
int NumLayers { get; set; } Gets or sets the number of encoder layers.
int NumMels { get; set; } Gets or sets the number of mel spectrogram channels.
int SampleRate { get; set; } Gets or sets the audio sample rate in Hz.
int VocabSize { get; set; } Gets or sets the vocabulary size.
string Language { get; set; } Gets or sets the language code.
string ModelPath { get; set; } Gets or sets the path to the ONNX model file.
string Variant { get; set; } Gets or sets the model variant (“small”, “medium”, “large”).
string[] Vocabulary { get; set; } Gets or sets the CTC vocabulary (characters or BPE tokens).