TtsModelOptions
Options & Configuration ยท AiDotNet.TextToSpeech
Base configuration options for text-to-speech models.
Inheritance: ModelOptions โ TtsModelOptions
Known derived types: AcousticModelOptions, CSMOptions, ChatTTSOptions, CodecTtsOptions, DiaOptions, E2TTSOptions, EmotiVoiceOptions, EndToEndTtsOptions, F5TTSOptions, FishSpeechFamilyOptions, GLM4VoiceOptions, IndexTTS2Options, IndexTTSOptions, LlamaOmniOptions, LlasaOptions, MARS5TTSOptions, MegaTTS2Options, MegaTTS3Options, MegaTTSOptions, MinMoOptions, MoshiOptions, NaturalSpeech2Options, NaturalSpeech3Options, NaturalSpeechOptions, OrpheusTTSOptions, OuteTTSOptions, ParlerTTSOptions, PhemeOptions, SPEARTTSOptions, SoundStormOptions, SpeechGPTOptions, SpeechT5Options, StepAudioOptions, VevoOptions, VocoderOptions, VoiceboxOptions
For Beginners
These options configure the TtsModel model. Default values follow the original paper settings.
Constructors
| Constructor | Summary |
|---|---|
TtsModelOptions() |
Initializes a new instance with default values. |
TtsModelOptions(TtsModelOptions other) |
Initializes a new instance by copying from another instance. |
Properties
| Property | Summary |
|---|---|
OnnxModelOptions OnnxOptions { get; set; } |
Gets or sets ONNX runtime options. |
double DropoutRate { get; set; } |
Gets or sets the dropout rate. |
double LearningRate { get; set; } |
Gets or sets the learning rate. |
double WeightDecay { get; set; } |
Gets or sets the weight decay. |
int FftSize { get; set; } |
Gets or sets the FFT window size. |
int HiddenDim { get; set; } |
Gets or sets the model hidden dimension. |
int HopSize { get; set; } |
Gets or sets the hop size for mel-spectrogram computation. |
int MaxMelLength { get; set; } |
Gets or sets the maximum output audio length in mel frames. |
int MaxTextLength { get; set; } |
Gets or sets the maximum input text length. |
int MelChannels { get; set; } |
Gets or sets the number of mel-spectrogram frequency channels. |
int NumDecoderLayers { get; set; } |
Gets or sets the number of decoder layers. |
int NumEncoderLayers { get; set; } |
Gets or sets the number of encoder layers. |
int NumHeads { get; set; } |
Gets or sets the number of attention heads. |
int SampleRate { get; set; } |
Gets or sets the audio sample rate in Hz. |
int VocabSize { get; set; } |
Gets or sets the phoneme/text vocabulary size. |
string ModelPath { get; set; } |
Gets or sets the ONNX model path. |