Simple JNI wrapper for the nnnoiseless using jni-rs.
repositories {
maven("https://repo.plasmoverse.com/releases")
}
dependencies {
implementation("com.plasmoverse:rnnoise-jni-rust:$version")
}
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();