Sound with the Web Audio API
HTML5 has two different systems for playing sounds: the older HTML5 Audio element and the newer Web Audio API. Which one should you use? For games, use the incredibly powerful Web Audio API. It loads sounds reliably, lets you play multiple sounds at the same time, and gives you precise playback control. In addition, it lets you apply effects, create your own synthesized sounds, and specify different kinds of input and output sources. Once you get over the small learning curve, you'll be able to use the Web Audio API to quickly create any kind of sound system you can imagine.