RNNTransducerOptions
Options & Configuration · AiDotNet.Audio.SpeechRecognition
Configuration options for the RNN-Transducer (RNN-T) speech recognition model.
Inheritance: ModelOptions → RNNTransducerOptions
For Beginners
RNN-T is a real-time speech recognizer ideal for live transcription. Unlike batch models (like Whisper), it processes audio as it arrives, making it perfect for live captioning and voice assistants. It has three parts: an encoder (listens), a predictor (remembers what was said), and a joiner (combines both to output the next word).
How It Works
RNN-Transducer (Graves, 2012; He et al., 2019) combines an audio encoder with a label prediction network and a joint network to produce a streaming ASR system. Unlike CTC, RNN-T can model output dependencies through its prediction network, achieving strong results without an external language model.
Constructors
| Constructor | Summary |
|---|---|
RNNTransducerOptions() |
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 EmbeddingDim { get; set; } |
Gets or sets the embedding dimension for output tokens. |
int EncoderDim { get; set; } |
Gets or sets the encoder hidden dimension. |
int JointDim { get; set; } |
Gets or sets the joint network hidden dimension. |
int NumEncoderHeads { get; set; } |
Gets or sets the number of encoder attention heads. |
int NumEncoderLayers { get; set; } |
Gets or sets the number of encoder layers. |
int NumMels { get; set; } |
Gets or sets the number of mel spectrogram channels. |
int NumPredictionLayers { get; set; } |
Gets or sets the number of prediction LSTM layers. |
int PredictionDim { get; set; } |
Gets or sets the prediction network hidden dimension. |
int SampleRate { get; set; } |
Gets or sets the audio sample rate in Hz. |
int VocabSize { get; set; } |
Gets or sets the vocabulary size (subword tokens). |
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/RNN-T vocabulary (characters or BPE tokens). |