Hi Arjun,
Try this code
First Add div to your page
<div style="display: none" id="divSound"></div>
then add following js code to your script file.
var val = navigator.userAgent.toLowerCase();
if (val.indexOf("msie") > -1)
{
$("#divSound").html('<embed src="stompa.mp3" autostart=true width=0 height=0 id="LegacySound" enablejavascript="true" >');
} else
{
var audio = new Audio();
audio.src = 'stompa.mp3';
audio.play();
}
this should be working in all browser.
Hope this helps!