var audio = new Audio("folder_name/audio_file.mp3"); audio.play();
<audio id="foobar" src="yoursample.ogg" preload="auto">