Skip to main content

createAudioStats

function createAudioStats(stats, options): AudioStats;

AudioStats builder

Parameters

ParameterTypeDescription
statsPartial<AudioStats>overwrite the default attributes
options{ clipCountThreshold?: number; lowVolumeThreshold?: number; silentThreshold?: number; }silentThreshold, lowVolumeThreshold and clipCountThreshold
options.clipCountThreshold?number-
options.lowVolumeThreshold?number-
options.silentThreshold?number-

Returns

AudioStats