API

Interface AudioAnalyzerOptions

Options for enableAnalyzer.

interface AudioAnalyzerOptions {
    fftSize?: number;
    maxDecibels?: number;
    minDecibels?: number;
    smoothing?: number;
}
Index
fftSize?: number

FFT window size (a power of two, 32–32768). Defaults to 2048.

maxDecibels?: number

Maximum power value for the dB range, in dBFS. Defaults to -30.

minDecibels?: number

Minimum power value for the dB range, in dBFS. Defaults to -100.

smoothing?: number

Time-averaging constant in [0, 1]. Defaults to 0.8.