var audio = new Audio('./soundtrack.format'); code example Example: html play audio programmatically document.getElementById('yourAudioTag').play();