jQuery
【jQuery】サウンドエフェクトを作成するためのjQueryプラグインEasyAudioEffects.js
July 21, 2015

EasyAudioEffects.jsはHTML要素に簡単な音響効果を与えることができるプラグイン。
jQuery本体は1.7.0以降を使います。Safariでは少し反応が遅いです。
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="jquery.easyAudioEffects.js"></script>
$('.selector').easyAudioEffects({ ogg : "/path/to/sound.ogg", mp3 : "/path/to/sound.mp3" });
使用可能なオプションでevent type,play typeが設定できますのでDEMOを参照して下さい。
ライセンスはMITです。
Demo/Download