RE:como reproducir un archivo de audio en la web
Yo uso el objeto Windows Media Player (MM_WMP) con este código.
Pegalo en una pagina html para ver si funciona. Si este objeto está en tu máquina, debe funcionar
En el mismo directorio que copias esta pagina, copias un par de archivos wav y mp3. Luego escribes el nombre de uno de ellos en el cuadro de texto y das clic al botón.
<html>
<head>
<title>Untitled</title>
<EMBED name="objsonido" src="nada.wav" LOOP="false" hidden="true" WIDTH =0 HEIGHT="0" AUTOSTART="false"></EMBED>
</head>
<body>
<input type="button" name="boton" value="Reproducir" onclick="sonido('objsonido',tx_musica.value)">
<input type="text" name="tx_musica" size="40">
</body>
<script language="javascript">
function sonido(obj,f)
{
var i, sndObj = eval(obj);
sndObj.filename =f
if (sndObj != null)
{
if (window.MM_WMP == null)
{
window.MM_WMP = false;
for(i in sndObj)
if (i == "ActiveMovie")
{
window.MM_WMP = true; break;
}
}
}
eval(obj+".play()");
}
//-->
</script>
</html>