Audio in pronunciation guide
The audio is stored in home1t/moses/www/audio, all together in one folder. This includes aup files and their associated folders (Audacity projects), mp3s generated by CB, and the OGG files I auto-generated from the mp3s.
We're linking to them like this:
<ref type="audio" target="mosaud:filename.mp3">[word]</ref>
From that, I'm generating an HTML5 <audio> element with two <source> element children, one for mp3 and one for ogg (my Linux Firefox still won't play mp3s). I've substituted a single play button for the standard controls, which are overkill for these tiny extracts.
One problem is that eXist currently outputs the <source> elements with closing tags instead of as self-closers, and that generates an error in the HTML5 validator. I've filed an eXist bug for that.
Another problem we have is that the audio is extremely noisy. It could easily be cleaned up; the question is whether it would be better to clean up the full stretches and re-capture the individual words, or just clean up the segments we're using.