Skip to main content

AudioData

interface AudioData 

Properties

absoluteMax

absoluteMax: number

The absolute biggest value from the peaks array.


length

length: number

The amount of samples taken.


peaks

peaks: number[]

An array of minimum and maximum waveform data points, interleaved. Each value is in range of -1 to 1.


sampleRate

sampleRate: number

Samples per seconds.