mwg API
    Preparing search index...

    Interface SampleEncodeOptions

    How hard an encoder compresses. Each field belongs to one codec and the others ignore it: FLAC is lossless and takes neither. An encoder that has no use for them may leave the parameter out.

    interface SampleEncodeOptions {
        bitrate?: number;
        quality?: number;
    }
    Index
    bitrate?: number

    target bitrate in kbit/s for Opus (6 to 510); the encoder's own default when absent

    quality?: number

    quality level for Vorbis, -1 (smallest) to 10 (best); the encoder's own default when absent