playbackRate property

AudioParam playbackRate

The playbackRate property of the AudioBufferSourceNode Is a k-rate AudioParam that defines the speed at which the audio asset will be played.

A value of 1.0 indicates it should play at the same speed as its sampling rate, values less than 1.0 cause the sound to play more slowly, while values greater than 1.0 result in audio playing faster than normal. The default value is 1.0. When set to another value, the AudioBufferSourceNode resamples the audio before sending it to the output.

Implementation

AudioParam get playbackRate;