https://github.com/prior99/node-samplerate
This packages provides a method to convert the samplerate of raw audio to a different samplerate.
https://github.com/prior99/node-samplerate
nodejs
Last synced: 2 months ago
JSON representation
This packages provides a method to convert the samplerate of raw audio to a different samplerate.
- Host: GitHub
- URL: https://github.com/prior99/node-samplerate
- Owner: Prior99
- Created: 2015-04-30T15:35:03.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-19T09:39:58.000Z (over 9 years ago)
- Last Synced: 2025-08-21T15:42:36.649Z (10 months ago)
- Topics: nodejs
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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:
```javascript
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.