# audio-converter

> A utility tool for batch converting wave files to ogg/mp3. This tool currently depends on [SoX](http://sox.sourceforge.net/).

Latest version **1.0.13** (published 2016-11-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install audio-converter
pnpm add audio-converter
yarn add audio-converter
bun add audio-converter
```

Provides the command `audio-converter`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.13 |
| Published | 2016-11-02 |
| First published | 2015-03-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | James Meyers |
| Maintainers | simplej |
| Keywords | sound, audio, convert, wave, ogg, mp3 |

## Links

- npm: https://www.npmjs.com/package/audio-converter
- Repository: https://github.com/FullR/audio-converter
- Homepage: https://github.com/FullR/audio-converter#readme
- Issues: https://github.com/FullR/audio-converter/issues
- npm.io page: https://npm.io/package/audio-converter

## Dependencies (7)

- [q](https://npm.io/package/q.md) ^1.2.0
- [glob](https://npm.io/package/glob.md) ^5.0.15
- [pace](https://npm.io/package/pace.md) 0.0.4
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [commander](https://npm.io/package/commander.md) ^2.7.1
- [lodash.uniq](https://npm.io/package/lodash.uniq.md) ^4.3.0
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) ^4.0.6

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.13 (latest) — 2016-11-02
- 1.0.12 — 2016-11-01
- 1.0.11 — 2016-07-11
- 1.0.10 — 2016-07-11
- 1.0.9 — 2016-07-11
- 1.0.8 — 2016-07-11
- 1.0.7 — 2015-04-02
- 1.0.6 — 2015-03-31
- 1.0.5 — 2015-03-31
- 1.0.4 — 2015-03-31
- 1.0.3 — 2015-03-31
- 1.0.2 — 2015-03-31
- 1.0.1 — 2015-03-30
- 1.0.0 — 2015-03-30

## README

# [Audio Converter](https://www.npmjs.com/package/audio-converter)

A utility tool for batch converting wave files to ogg/mp3. This tool currently depends on [SoX](http://sox.sourceforge.net/).

## Install
```
npm install audio-converter;
apt-get install sox
```

## Usage

### Command Line
`audio-converter [options] <input-directory> <output-directory>`

### Node module
```javascript
var audioConverter = require("audio-converter");
audioConverter("path/to/waves", "path/to/output", {
    progressBar: true
}).then(function() {
    console.log("Done!");
});
```

## Options
### chunkSize, -c &lt;i&gt;
The number of files to be converted in parallel. Default: 100

### progressBar, -p
Display progress bar

### verbose, -v
Print additional information

### mp3Only, -m
Only generate MP3s

### oggOnly, -o
Only generate OGGs

### mp3Quality, -M &lt;n&gt;
MP3 quality argument provided to Sox. Default: 192
Pass `false` or `"false"` to use Sox built-in defaults.

### oggQuality, -O &lt;n&gt;
OGG quality argument provided to Sox. Default: 6
Pass `false` or `"false"` to use Sox built-in defaults.

## Testing

Install and run [Mocha](http://mochajs.org/)
```
npm install -g mocha;
mocha
```

## Bugs & Issues

If you find any problems with this module, feel free to create a new issue on the github page.

## Author

James Meyers

[GitHub](https://github.com/FullR)

---
_Source: https://npm.io/package/audio-converter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
