Naan and Paneer Makhani

npm

Need private packages and team management tools?Check out npm Orgs. »

node-samplerate

0.2.1 • Public • Published

Samplerate

This packages provides a method to convert the samplerate of raw audio to a different samplerate.

It is based on the library libsamplerate.

Usage

First, install the package using npm:

npm install samplerate --save

Then use the package as follows:

var Samplerate = require("samplerate");
 
var originalSamplerate = 22050;
var channels = 1;
var targetSamplerate = 48000;
 
var data = [...]
 
var resampledData = Samplerate.resample(data, originalSamplerate, targetSamplerate, channels);
 

License

This project is published under the terms of version 3 of the GNU General Public License.

install

npm i node-samplerate

Downloadsweekly downloads

3

version

0.2.1

license

GPL

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability