Interface AudioAnalyzerOptions
interface AudioAnalyzerOptions {
fftSize?: number;
maxDecibels?: number;
minDecibels?: number;
smoothing?: number;
}
fftSize?: number;
maxDecibels?: number;
minDecibels?: number;
smoothing?: number;
}
Properties
Optionalfft Size
fftSize?: number
FFT window size (a power of two, 32–32768). Defaults to 2048.
Optionalmax Decibels
maxDecibels?: number
Maximum power value for the dB range, in dBFS. Defaults to -30.
Optionalmin Decibels
minDecibels?: number
Minimum power value for the dB range, in dBFS. Defaults to -100.
Optionalsmoothing
smoothing?: number
Time-averaging constant in [0, 1]. Defaults to 0.8.
Options for enableAnalyzer.