Skip to content

@modoki/engine / index / AudioImportSettings

Interface: AudioImportSettings

Audio

bitDepth?

optional bitDepth?: number

PCM bit depth for the lossless wav format (16/24/32). Ignored for other formats. Default 16 (pcm_s16le).


forceMono

forceMono: boolean

Downmix to a single channel — halves the size of mono SFX captured in stereo.


format

format: AudioFormat

Converter target. Default mp3 (license-free, decodes everywhere).


loadType

loadType: AudioLoadType


normalize

normalize: boolean

EBU R128 loudness normalization (loudnorm) so clips sit at a consistent level.


quality

quality: number

Target bitrate in kbps for lossy formats (mp3/aac/opus). Ignored for wav/flac.


sampleRate?

optional sampleRate?: number

Output sample rate in Hz (ffmpeg -ar). undefined/0 keeps the source rate. A big size lever for SFX — 22050 halves the data vs 44100 with little audible loss on most effects.


trimSilence

trimSilence: boolean

Trim leading/trailing digital silence (silenceremove).

Built with Modoki.