Module options

Source
Expand description
  • Encoder creation options

Structs§

FlacEncoderParams
Parameters for the encoder to encode the audio.
Mp3EncoderOptions
The encoder options for MP3
OggVorbisEncoderParams
OggVorbis encoder parameters, NOTE: Most of the comments or documents were copied from vorbis_rs
OpusEncoderOptions
The encoder options for Opus

Enums§

AdpcmSubFormat
When to encode audio to ADPCM format, choose one of the subformats.The value of the subformat is the format_tag field of the fmt chunk.
FileSizeOption
These options are used to specify what type of WAV file you want to create.
FlacCompression
The compression level of the FLAC file
Mp3Bitrate
The tier 1 factor for MP3 audio quality, bigger bitrate means better audio quality.Most of the music website provides 128 kbps music for free, and 320 kbps music for the purchased subscribed members.
Mp3Channels
MP3 supports two channels in multiple ways.
Mp3Quality
MP3 quality. Affects the speed of encoding.
Mp3VbrMode
The VBR mode for MP3. If you turn VBR on, the audio quality for MP3 will be a little bit worse.
OggVorbisBitrateStrategy
OggVorbis bitrate strategy represents a bitrate management strategy that a OggVorbis encoder can use.
OggVorbisMode
OggVorbis encoder mode
OpusBitrate
The bitrate option for the Opus encoder, the higher the better for audio quality.
OpusEncoderSampleDuration
The opus encoder only eats these durations of the samples to encode.Longer duration means better quality and compression.If longer than or equal to 10ms, the compression algorithm could be able to use some advanced technology.