NeuralAudioCodecOptions

Options & Configuration · AiDotNet.Audio.Codecs

Options shared by the neural audio codecs (encoder → residual vector quantizer → decoder).

Inheritance: ModelOptions → NeuralAudioCodecOptions

Known derived types: DACOptions, EnCodecOptions, SoundStreamOptions, SpeechTokenizerOptions

Constructors

Constructor Summary
NeuralAudioCodecOptions()

Properties

Property Summary
OnnxModelOptions OnnxOptions { get; set; } Gets or sets the ONNX runtime options.
bool IncludeDiscriminators { get; set; } Gets or sets whether the codec builds the discriminators its adversarial training needs (true).
double TargetBandwidthKbps { get; set; } Gets or sets the bandwidth (kbps) Encode and prediction use.
int Channels { get; set; } Gets or sets the number of audio channels.
int CodebookSize { get; set; } Gets or sets the entries per codebook.
int NumQuantizers { get; set; } Gets or sets the most residual codebooks the quantizer holds.
int SampleRate { get; set; } Gets or sets the audio sample rate in Hz.
int SamplingSeed { get; set; } Gets or sets the seed of the training draws (segment offsets, bandwidths, discriminator updates).
int SegmentSize { get; set; } Gets or sets the training segment length in samples.
string DecoderModelPath { get; set; } Gets or sets the path of an ONNX decoder.
string EncoderModelPath { get; set; } Gets or sets the path of an ONNX encoder.
string ModelPath { get; set; } Gets or sets the path of an ONNX model with the encoder and decoder in one graph.