Skip to main content

AudioData

interface AudioData 

Properties​

absoluteMax​

absoluteMax: number

The absolute biggest value from the peaks array.


duration​

duration: number

The duration of the audio in seconds.


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.