zig.com Result Size: 625 x 565
x
 
<!DOCTYPE html> 
<html> 
<body> 
<audio id="myAudio" controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
  Your browser does not support the audio element.
</audio><br>
<button onclick="getPlaySpeed()" type="button">What is playback speed?</button>
<button onclick="setPlaySpeed()" type="button">Set audio to be play fast</button>
<script>
  var x = document.getElementById("myAudio");
  function getPlaySpeed() {
    alert(x.playbackRate);
  }
  function setPlaySpeed() {
    x.playbackRate = 2;
  } 
</script> 
</body> 
<!-- /jsref/tryit.asp?filename=tryjsref_audio_playbackrate2 Thu, 06 Feb 2025 20:00:40 GMT -->
</html>