Get started with howler CDN

MIT licensed

The Howler.js library is a cross-browser, multi-format audio API for the web.

Tags:
  • howler
  • howler.js
  • audio
  • sound
  • webaudio

Stable version

Copied!

How to start using howler CDN


// Include Howler library from CDN
const Howler = require('howler-min.js');

// Create a new Howler instance for playing a sound
const mySound = new Howler('path/to/your/audio-file.mp3');

// Play the sound
mySound.play();

// Fade out the sound after 3 seconds
setTimeout(() => {
  mySound.fade(0, 1000);
}, 3000);
Copied!
Copied!
Copied!
Copied!

All versions