A utility tool for batch converting wave files to ogg/mp3. This tool currently depends on SoX.
npm install audio-converter;
apt-get install sox
audio-converter [options] <input-directory> <output-directory>
var audioConverter = require("audio-converter");
audioConverter("path/to/waves", "path/to/output", {
progressBar: true
}).then(function() {
console.log("Done!");
});
The number of files to be converted in parallel. Default: 100
Display progress bar
Print additional information
Only generate MP3s
Only generate OGGs
MP3 quality argument provided to Sox. Default: 192
Pass false
or "false"
to use Sox built-in defaults.
OGG quality argument provided to Sox. Default: 6
Pass false
or "false"
to use Sox built-in defaults.
Install and run Mocha
npm install -g mocha;
mocha
If you find any problems with this module, feel free to create a new issue on the github page.
James Meyers