SambaASROptions
Options & Configuration · AiDotNet.SpeechRecognition.LLMIntegrated
Options for Samba-ASR: Mamba-based state-space model for speech recognition.
Inheritance: ModelOptions → SambaASROptions
For Beginners
These options configure the SambaASR model. Default values follow the original paper’s recommended settings for optimal speech recognition accuracy.
Constructors
| Constructor | Summary |
|---|---|
SambaASROptions() |
Initializes a new instance with default values. |
SambaASROptions(SambaASROptions 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 DropoutRate { get; set; } |
Gets or sets the dropout probability of the native layers during training. |
int ConvKernelSize { get; set; } |
Depthwise causal conv kernel width inside each Mamba block. |
int EncoderDim { get; set; } |
Gets or sets the hidden width of the encoder. |
int ExpandFactor { get; set; } |
Mamba inner expansion factor E (inner dim = E · EncoderDim). |
int MaxAudioLengthSeconds { get; set; } |
Gets or sets the longest clip, in seconds, of the reference configuration. |
int MaxSequenceLength { get; set; } |
Maximum encoder frame count the SSM scan is sized for. |
int MaxTextLength { get; set; } |
Gets or sets the most tokens decoded for one utterance. |
int NumAttentionHeads { get; set; } |
Retained for backward compatibility; unused by the Mamba (attention-free) encoder. |
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 StateDimension { get; set; } |
SSM latent state size N per Mamba block (Gu & Dao 2023). |
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. |