# wav-converter

> a package for encoding PCM to Wav and decoding Wav back to PCM.

Latest version **1.0.0** (published 2019-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install wav-converter
pnpm add wav-converter
yarn add wav-converter
bun add wav-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.0 |
| Published | 2019-10-19 |
| First published | 2019-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | ttimehc |
| Maintainers | lymon_z |
| Keywords | PCM, wav, convert |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2019-10-19

## README

# wav-converter

a package for encoding PCM to Wav audio and decoding Wav to PCM

# Installation

```
npm i --save wav-converter
```

# Usage

```js
var wavConverter = require('wav-converter')
var fs = require('fs')
var path = require('path')
var pcmData = fs.readFileSync(path.resolve(__dirname, './16k.pcm'))
var wavData = wavConverter.encodeWav(pcmData, {
    numChannels: 1,
    sampleRate: 16000,
    byteRate: 16
})

fs.writeFileSync(path.resolve(__dirname, './16k.wav'), wavData)

```

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