Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/disoul/g7112pcm.js

decode G.711 to 16 bit PCM
https://github.com/disoul/g7112pcm.js

Last synced: 15 days ago
JSON representation

decode G.711 to 16 bit PCM

Awesome Lists containing this project

README

        

# g7112pcm.js
decode G.711 buffer to 16 bit PCM

`npm install g7112pcm`

```javascript
var decodeAlaw = require("g711pcm").decodeAlaw;
var decodeUlaw = require("g711pcm").decodeUlaw;

const pcmData = decodeAlaw(Uint8Array(ALAW_BUFFER));
const pcmData = decodeUlaw(Uint8Array(ULAW_BUFFER));
```