Originally Posted by xelawho
I ran the code I posted in Chrome and it works fine with your sound files. In firefox I get an error that says "Media resource http://spellingrodeocom.ipage.com/Sp...t%201/your.wav
could not be decoded."
but running the code with my .wav files, it works fine in firefox
googling around, it seems that the problem could come from one of two issues:
- the MIME type of your files is not set correctly
- the bit rate is too high. It would appear that Firefox supports 8-bit and 16-bit PCM, but not other bit depths (12, 20, 24, 32).
maybe if you were going to re-record your audio files anyway it would make sense to do them in .ogg format which may be less problematic:
sorry, I don't know too much about audio so I'm not sure how much help I can be here
It was the bit rate that made the difference! I tried it on my win 7 at home and it plays in firefox and chrome. I'll try it at school on Monday. Thank you SO Much!
I have two more questions:
Is there a way to make the play sound buttons go 4 across by 5 rows? I've tried to put a table in the code, but can't seem to figure it out. Is there a way to assign each element pulled from the array to a specific cell?
Also, I have my sentences named senone.wav, sentwo.wav. That is what comes in the form to me when I go to grade. Is there any way give each sentence wav an id or name that can then be replaced in the form. What I'm trying to do is have the full sentence show in the form that is sent to me: ie. senone.wav = "He and I had the duck."