x
 
<!DOCTYPE html> 
<html> 
<body> 
<audio id="myAudio" controls>
  <source src="/i/audio/song.mp3" type="audio/mpeg">
  <source src="/i/audio/song.ogg" type="audio/ogg">
  您的浏览器不支持 audio 元素。
</audio><br><br>
<button onclick="getPlaySpeed()" type="button">播放速度是多少?</button>
<button onclick="setPlaySpeed()" type="button">将音频设置为慢速播放</button>
<script>
var x = document.getElementById("myAudio");
function getPlaySpeed() { 
  alert(x.playbackRate);
} 
function setPlaySpeed() { 
  x.playbackRate = 0.5;
} 
</script> 
</body> 
</html>