@avahq/resampler-native-rubato
v1.2.15
Published
**This node module is based on rubato, a Rust program that can re-sampler (change sample rate) quickly**
Downloads
121
Readme
Resampler-native-rubato
This node module is based on rubato, a Rust program that can re-sampler (change sample rate) quickly
We create a bindign via napi.rs and published it.
Usage
Build (if needed)
yarn && yarn run build
Unit Tests
Cargo test && Yarn test
From buffer (expect f32 data)
import { reSampleBuffer } from "@avahq/resampler-native-rubato";
// Check eg inside __test__ folder
From int16 buffer
import { reSampleInt16Buffer } from "@avahq/resampler-native-rubato";
// Check eg inside __test__ folder
From file (just present for try purpose)
import { reSampleAudioFile } from "@avahq/resampler-native-rubato";
// Check eg inside __test__ folder
Release
Ensure you have set your NPM_TOKEN in the GitHub project setting.
In Settings -> Secrets, add NPM_TOKEN into it.
When you want to release the package:
npm version [ | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=] | from-git]
git push GitHub actions will do the rest job for you.