A Java wrapper for RNNoise written in Rust using JNI.
Maven
<dependency>
<groupId>de.maxhenkel.rnnoise4j</groupId>
<artifactId>rnnoise4j</artifactId>
<version>2.0.2</version>
</dependency>
<repositories>
<repository>
<id>henkelmax.public</id>
<url>https://maven.maxhenkel.de/repository/public</url>
</repository>
</repositories>
Gradle
dependencies {
implementation 'de.maxhenkel.rnnoise4j:rnnoise4j:2.0.2'
}
repositories {
maven {
name = "henkelmax.public"
url = 'https://maven.maxhenkel.de/repository/public'
}
}
short[] noisyAudio = ...;
Denoiser denoiser = new Denoiser();
short[] denoisedAudio = denoiser.denoise(noisyAudio);
denoiser.close();