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.
yarn && yarn run build
Cargo test && Yarn test
import { reSampleBuffer } from "@avahq/resampler-native-rubato";
// Check eg inside __test__ folder
import { reSampleInt16Buffer } from "@avahq/resampler-native-rubato";
// Check eg inside __test__ folder
import { reSampleAudioFile } from "@avahq/resampler-native-rubato";
// Check eg inside __test__ folder
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.