Audio playbackRate Property
Example
Set the audio to play in slow motion:
document.getElementById("myAudio").playbackRate = 0.5;
Try it Yourself »
Definition and Usage
The playbackRate property sets or returns the current playback speed of the audio.
Browser Support
| Property | |||||
|---|---|---|---|---|---|
| ended | Yes | 10.0 | Yes | Yes | Yes |
Syntax
Return the playbackRate property:
audioObject.playbackRate
Set the playbackRate property:
audioObject.playbackRate = playbackspeed
Property Values
| Value | Description |
|---|---|
| playbackspeed | Indicates the current playback speed of the audio. Example values:
|
Technical Details
| Return Value: | A Number, representing the current playback speed |
|---|---|
| Default Value: | 1.0 |
More Examples
Example
Set the audio to play fast:
document.getElementById("myaudio").playbackRate = 2;
Try it Yourself »
❮ Audio Object

