node package manager

simple-audio

simple-audio

Small Module to play audio using HTML audio tag

Also addresses the Chrome for Andriod issue 178297

Usage

HTML

<audio class="foo">
    <source src="foo.mp3"></source>
    <source src="foo.wav"></source>
    <source src="foo.ogg"></source>
</audio>

JavaScript

var audio = require('simple-audio');
audio.playSound('foo');