Skip to content

henkelmax/speex4j

Repository files navigation

Speex4J

A Java wrapper for Speex written in C using JNI.

Java 8+ is required to use this library.

Supported Platforms

  • Windows x86_64
  • Windows aarch64
  • macOS x86_64
  • macOS aarch64
  • Linux x86_64
  • Linux aarch64

Usage

Maven

<dependency>
  <groupId>de.maxhenkel.speex4j</groupId>
  <artifactId>speex4j</artifactId>
  <version>1.0.0</version>
</dependency>

<repositories>
  <repository>
    <id>henkelmax.public</id>
    <url>https://maven.maxhenkel.de/repository/public</url>
  </repository>
</repositories>

Gradle

dependencies {
  implementation 'de.maxhenkel.speex4j:speex4j:1.0.0'
}

repositories {
  maven {
    name = "henkelmax.public"
    url = 'https://maven.maxhenkel.de/repository/public'
  }
}

Example Code

try(AutomaticGainControl agc = new AutomaticGainControl(960, 48000)) {
  short[] audio = ...;
  agc.agc(audio);
}

Building from Source

Prerequisites

Building

./gradlew build

Credits

About

A Java wrapper for SpeexDSP

Resources

Stars

Watchers

Forks