Skip to content

NAPI.RS bindings of rubato to convert buffer JS to Buffer JS with resampler

Notifications You must be signed in to change notification settings

AvaHQ/resampler-native-rubato

Repository files navigation

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.

About

NAPI.RS bindings of rubato to convert buffer JS to Buffer JS with resampler

Resources

Stars

Watchers

Forks

Packages

No packages published