DeepgramNova2Options

Options & Configuration ยท AiDotNet.SpeechRecognition.ProprietaryAPI

Options for the Deepgram Nova-2 stand-in, a Transformer encoder with a CTC layer (Deepgram has disclosed only a Transformer-based end-to-end model).

Inheritance: ModelOptions โ†’ DeepgramNova2Options

For Beginners

These options set the size of the encoder and decoder, the feature front end and the training augmentation.

How It Works

See DeepgramNova2 for which defaults the vendor or paper discloses and which the stand-in infers.

Constructors

Constructor Summary
DeepgramNova2Options() Initializes a new instance with default values.
DeepgramNova2Options(DeepgramNova2Options other) Initializes a new instance by copying from another instance.

Properties

Property Summary
OnnxModelOptions OnnxOptions { get; set; } ONNX runtime options.
double TimeMaskRatio { get; set; } Largest time mask as a fraction of the utterance (pS = 0.05).
int EncoderDim { get; set; } Transformer width (the base Transformer: 512).
int FeedForwardMultiplier { get; set; } Feed-forward expansion (2,048 units at width 512).
int FrequencyMaskWidth { get; set; } Largest frequency mask, in mel bins (F = 27).
int FrequencyMasks { get; set; } SpecAugment frequency masks (Park et al.
int MaxAudioLengthSeconds { get; set; } Longest audio a transcription covers, in seconds; longer input is truncated.
int NumAttentionHeads { get; set; } Attention heads per layer (8).
int NumEncoderLayers { get; set; } Transformer encoder layers (12).
int NumMels { get; set; } Log-mel bins (80 over 25 ms windows with a 10 ms stride).
int SampleRate { get; set; } Audio sample rate in Hz.
int TimeMasks { get; set; } SpecAugment time masks (10).
int VocabSize { get; set; } Output vocabulary size, blank (token 0) included.
string Language { get; set; } Language reported for transcriptions.
string ModelPath { get; set; } Path to an exported ONNX model, when one is used.
string[] Vocabulary { get; set; } The text of each token; tokens past the list decode as Unicode code points, and tokens in angle brackets decode to nothing.