Skip to content

henriAbel/node_resampler

Repository files navigation

node_resampler

C++ libswresample bindings for audio resampling

Requirements

libswresample

  • Ubuntu 15.04
$ sudo apt-get install libswresample-ffmpeg-dev
  • Centos
$ sudo yum install ffmpeg-devel

Installation

Install via git

$ npm install git+https://github.com/henriAbel/node_resampler.git

Example

var Resampler = require('node_resampler');

// Downsample from 44100 to 22050
var resampler = new Resampler({
        sourceRate: 44100,
        targetRate: 22050,
        stereo : true
});

// Read from stdin -> resample -> print to stdout
process.stdin.pipe(resampler).pipe(process.stdout);

About

C++ libswresample bindings for audio resampling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published