boombox-audiosprite
boombox.js compatible audio sprite generator
About
The boombox-audiosprite is a command that wraps the tonistiigi/audiosprite command. (en
boombox-audiosprite は、tonistiigi/audiosprite コマンドをラップしたコマンドです。 (ja
It's converted to JSON corresponding to boombox.js, a JSON file audiosprite has output. (en
tonistiigi/audiospriteが出力したJSONファイルを、boombox.js に対応したJSONに変換します。 (ja
tonistiigi/audiosprite で生成されたサウンドデータは、boombox-audiosprite で加工されることはありません。
The sound data generated by tonistiigi/audiosprite, not be processed in a boombox-audiosprite.
At the same time, please also refer to README.md of tonistiigi/audiosprite (en
合わせて、tonistiigi/audiosprite の README.md も参照ください。 (ja
Dependent command
Check
$ which ffmpeg
$ which audiosprite
Install
$ npm install -g boombox-audiosprite
Test
$ npm test
Sample
cd /Users/fkei/boombox.js/spec/media
$ boombox-audiosprite -e ac3,caf,mp3,m4a *.wav
==========
audiosprite(https:
==========
util.pump() is deprecated. Use readableStream.pipe() instead.
info: File added OK file=/var/folders/2g/gb26mb5111zf89jr1dp818240000gp/T/audiosprite.04611885884873569, duration=11.981519274322417
info: Silence gap added duration=1.0184807256235828
info: Exported ac3 OK file=output.ac3
info: Exported mp3 OK file=output.mp3
info: Exported m4a OK file=output.m4a
info: Exported json OK file=output.json
info: All done
>>> Output audio files: /Users/fkei/boombox.js/spec/media
<<< Original json file for audiosprite: /Users/fkei/boombox.js/spec/media/output.json
>>> Processed json file for boombox.js: /Users/fkei/boombox.js/spec/media/boombox-output.json
[ Success ] Goodbye :p
Command line help
$ boombox-audiosprite --help
==========
audiosprite(https://github.com/tonistiigi/audiosprite) wrapper for boombox.js :)
==========
info: Usage: audiosprite [options] file1.mp3 file2.mp3 *.wav
info: Options:
--output, -o Name for the output file. [default: "output"]
--export, -e Limit exported file types. Comma separated extension list. [default: ""]
--log, -l Log level (debug, info, notice, warning, error). [default: "info"]
--autoplay, -a Autoplay sprite name [default: null]
--silence, -s Add special "silence" track with specified duration. [default: 0]
--samplerate, -r Sample rate. [default: 44100]
--channels, -c Number of channels (1=mono, 2=stereo). [default: 1]
--rawparts, -p Include raw slices(for Web Audio API) in specified formats. [default: ""]
--help, -h Show this help message.
LICENSE
The MIT License (MIT)
@see : LICENSE