Build Audio Sprite for howler.js

By on

Original from https://github.com/sparanoid/drrr-php/issues/41

Ref:

  • http://goldfirestudios.com/blog/104/howler.js-Modern-Web-Audio-Javascript-Library
  • https://github.com/tonistiigi/audiosprite

Solution:

Audition output:

screenshot 2015-02-08 09 36 43

$ npm install -g audiosprite && brew install ffmpeg
$ audiosprite --export mp3 --output effect --format howler --channels 1 --samplerate 22050 --vbr 9 *.wav

Then convert it to VBR (No longer needed):

screenshot 2015-01-30 18 17 53