AWSTranscribeOptions
Options & Configuration · AiDotNet.SpeechRecognition.ProprietaryAPI
Options for the Amazon Transcribe stand-in, a streaming Conformer transducer (Gulati et al. 2020; Amazon has not disclosed Transcribe’s architecture).
Inheritance: ModelOptions → AWSTranscribeOptions
For Beginners
These options set the size of the encoder and decoder, the feature front end and the training augmentation.
How It Works
See AWSTranscribe for which defaults the vendor or paper discloses and which the stand-in infers.
Constructors
| Constructor | Summary |
|---|---|
AWSTranscribeOptions() |
Initializes a new instance with default values. |
AWSTranscribeOptions(AWSTranscribeOptions other) |
Initializes a new instance by copying from another instance. |
Properties
| Property | Summary |
|---|---|
OnnxModelOptions OnnxOptions { get; set; } |
ONNX runtime options. |
double RopeTheta { get; set; } |
Rotary base standing in for the paper’s relative sinusoidal encoding (section 2.1). |
double TimeMaskRatio { get; set; } |
Largest time mask as a fraction of the utterance (pS = 0.05). |
int AttentionChunkSize { get; set; } |
Encoder frames (40 ms each) per attention chunk, which bounds each output’s context. |
int ConvKernel { get; set; } |
Depthwise convolution kernel (Table 1: 32). |
int EncoderDim { get; set; } |
Conformer width (Table 1, Conformer L: 512). |
int FeedForwardMultiplier { get; set; } |
Expansion of each half-step feed-forward module (section 2.3: 4). |
int FrequencyMaskWidth { get; set; } |
Largest frequency mask, in mel bins (F = 27). |
int FrequencyMasks { get; set; } |
SpecAugment frequency masks (Park et al. |
int JointDim { get; set; } |
Width of the joint network. |
int MaxAudioLengthSeconds { get; set; } |
Longest audio a transcription covers, in seconds; longer input is truncated. |
int NumAttentionHeads { get; set; } |
Attention heads per block (Table 1: 8). |
int NumEncoderLayers { get; set; } |
Conformer blocks (Table 1: 17). |
int NumMels { get; set; } |
Log-mel bins (section 3.1: 80 over 25 ms windows with a 10 ms stride). |
int PredictionDim { get; set; } |
LSTM units of the prediction network (section 3.1: 640). |
int PredictionLayers { get; set; } |
LSTM layers of the prediction network (section 3.1: 1). |
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. |