Hace unas semanas necesite hacer algo similar para un chat (al estilo google talk en gmail). Es simple y seguramente podrás adaptarlo a lo que necesites, y si, es JS,  nada que ver php acá (aunque podes llamar al js desde el lado del php).
 
Link: 
http://snipplr.com/view/2384/javascr...-sound-ie--ff/ 
PD: También podes hacerlo mas simple, haciendo algo así: 
Código:
 
var TuSitio = document.TuSitio || {};
TuSitio.PlaySound = {
    MSIE: navigator.userAgent.indexOf("MSIE"),
    OPER: navigator.userAgent.indexOf("Opera"),
    Sound: "_sonido.wav",
    PlayNow: function(){
        if((TuSitio.PlaySound.MSIE>-1) || (TuSitio.PlaySoundOPER>-1)) {
            document.write('<bgsound src="'+TuSitio.PlaySound.Sound+'" loop="0">');
        } else {
            document.write('<embed src="'+TuSitio.PlaySound.Sound+'" autostart="true" hidden="true" volume="200" loop="0">');
        }
    }
}
//Inicialo llamando desde el onload o en el body a:
TuSitio.PlaySound.PlayNow();