Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 974 Bytes

readme.md

File metadata and controls

52 lines (40 loc) · 974 Bytes

RNNoise4J

A Java wrapper for RNNoise written in Rust using JNI.

Usage

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'
  }
}

Example Code

short[] noisyAudio = ...;
Denoiser denoiser = new Denoiser();
short[] denoisedAudio = denoiser.denoise(noisyAudio);
denoiser.close();

Sources