Воспроизвести Audio на щелчке JavaScript
<button onclick="playSound()">Play</button>
<script>
let playSound = () => new Audio("src.mp3").play();
</scirpt>
moghaazi
<button onclick="playSound()">Play</button>
<script>
let playSound = () => new Audio("src.mp3").play();
</scirpt>
var sound = new Audio("file.wav");
button.addEventListener('click',()=>{
sound.currentTime = 0;
sound.play();
});