Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.04 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.04 KB

rnnoise-jni-rust

Simple JNI wrapper for the nnnoiseless using jni-rs.

Adding dependency to the project

version

repositories {
    maven("https://repo.plasmoverse.com/releases")
}

dependencies {
    implementation("com.plasmoverse:rnnoise-jni-rust:$version")
}

Usage

Sample code from DenoiseTest.java

// Creates a new RNNoise instance.
Denoise denoise = Denoise.create();

// Processes the samples. Samples should be in 16-bit, 48kHz signed PCM format.
float[] processed = denoise.process(new float[960]);

// Closes the RNNoise instance, releasing allocated resources.
denoise.close();