前端页面中语音提示

<audio id="failSound" >
<source src='' type='audio/mp3'>
</audio>
 
<script>
    var video = document.getElementById("failSound");
    video.src="capi/number/store_error.mp3";
    video.play();
</script>
 
原文地址:https://www.cnblogs.com/crazytata/p/8427730.html