1.1.0 • Published 6 years ago

gulp-audiosprite v1.1.0

Weekly downloads
208
License
MIT
Repository
github
Last release
6 years ago

gulp-audiosprite

Build Status NPM version Dependencies status

Installation

Install with npm:

npm install --save-dev gulp-audiosprite

Also you need to install ffmpeg. ffmpeg should be available in a PATH environment variable

Usage

var audiosprite = require('gulp-audiosprite');

gulp.task('audiosprite', function() {
  return gulp.src('src/sounds/*.wav')
    .pipe(audiosprite({
      format: 'howler'
    }))
    .pipe(gulp.dest('dist/sounds'));
});

Options

Options are tha same as for audiosprite:

NameDefaultDescription
output"sprite"Name for the output files.
path""Path for files to be used on final JSON.
export"ogg,m4a,mp3,ac3"Limit exported file types. Comma separated extension list.
format"jukebox"Format of the output JSON file (jukebox, howler, createjs).
log"info"Log level (debug, info, notice).
autoplaynullAutoplay sprite name.
loopnullLoop sprite name, can be passed multiple times.
silence0Add special "silence" track with specified duration.
gap1Silence gap between sounds (in seconds).
minlength0Minimum sound duration (in seconds).
bitrate128Bit rate. Works for: ac3, mp3, mp4, m4a, ogg.
vbr-1VBR 0-9. Works for: mp3. -1 disables VBR.
samplerate44100Sample rate.
channels1Number of channels (1=mono, 2=stereo).
rawparts""Include raw slices(for Web Audio API) in specified formats.
1.1.0

6 years ago

1.0.6

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago