I'm working on a new ASP.NET MVC / JQuery app which will need to play short sound files in response to user actions. For example, in some cases, when a user clicks on a word, the computer should pronounce that word (there is a small finite list of words).
I'd like advice on the following:
- Which sound file format(s) would you recommend?
- What do I need to know about browser idiosyncracies regarding playing sound?
- What do you think is the most bandwidth-efficient way to deal with sound files? If there are 5 clickable words on a page, for example, would you send all 5 sound files to the browser with the page, or would you send none and use ajax to retrieve the sound file when the user clicks on it?
And, of course, what else do I need to know? :)
Thanks.