howler.js – Modern Web Audio Javascript Library

var sound = new Howl({
  urls: ['sounds.mp3', 'sounds.ogg'],
  sprite: {
    blast: [0, 2000],
    laser: [3000, 700],
    winner: [5000, 9000]
// shoot the laser!'laser');

howler.js defaults to Web Audio API and uses HTML5 Audio as the fallback. The library greatly simplifies the API and handles all of the tricky bits automatically

howler.js source (GitHub) →

Elsewhere , ,

3 Responses to howler.js – Modern Web Audio Javascript Library

  1. Pingback: Deleting Borders |

  2. Pingback: Listen to Wikipedia |

  3. Pingback: audio-effects – Create Audio Effects Using the Web Audio API |

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.