Howler.js Cross-Browser JavaScript Audio Library
Howler.js is a JavaScript audio library for the modern web that defaults to the Web Audio API with an HTML5 Audio fallback. With nearly 25,000 GitHub stars and 580,000 weekly npm downloads, it provides a single reliable API for audio playback, spatial sound, sprites, and streaming across all browsers and platforms.
Installation
Requirements and caveats from upstream:
- const {Howl, Howler} = require('howler');
- howler.spatial: This is a plugin that adds spatial/stereo audio functionality. It requires howler.core to operate as it is simply an add-on to the core.
- Sets the panner node's attributes for a sound or group of sounds. See the pannerAttr method for all available options.
Basic usage or getting-started notes:
Several options to get up and running:
Clone the repo: git clone https://github.com/goldfire/howler.js.git
Extracted from upstream docs: https://raw.githubusercontent.com/goldfire/howler.js/HEAD/README.md