com.orctom:speex4j

Speex Codec for Java

License

License

GroupId

GroupId

com.orctom
ArtifactId

ArtifactId

speex4j
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

Speex Codec for Java
Project URL

Project URL

https://github.com/orctom/speex4j/
Source Code Management

Source Code Management

https://github.com/orctom/speex4j/

Download speex4j

How to add to project

<!-- https://jarcasting.com/artifacts/com.orctom/speex4j/ -->
<dependency>
    <groupId>com.orctom</groupId>
    <artifactId>speex4j</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.orctom/speex4j/
implementation 'com.orctom:speex4j:1.0.3'
// https://jarcasting.com/artifacts/com.orctom/speex4j/
implementation ("com.orctom:speex4j:1.0.3")
'com.orctom:speex4j:jar:1.0.3'
<dependency org="com.orctom" name="speex4j" rev="1.0.3">
  <artifact name="speex4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.orctom', module='speex4j', version='1.0.3')
)
libraryDependencies += "com.orctom" % "speex4j" % "1.0.3"
[com.orctom/speex4j "1.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
net.java.dev.jna : jna jar 4.5.1
org.slf4j : slf4j-api jar 1.7.25

test (4)

Group / Artifact Type Version
com.google.guava : guava jar 22.0
ch.qos.logback : logback-classic jar 1.1.11
junit : junit jar 4.12
org.hamcrest : hamcrest-library jar 1.3

Project Modules

There are no modules declared in this project.

speex4j Maven Central

Purpose

Provide a speex encoder and decoder in Java.

Notice

  • Using the the way that in speex sample (sampleenc.c / sampledec.c) to encode and decode
  • 16 bits per sample

Usage

<dependency>
    <groupId>com.orctom</groupId>
    <artifactId>speex4j</artifactId>
    <version>1.0</version>
</dependency>
try (SpeexEncoder encoder = new SpeexEncoder()) {
  byte[] pcm = ...
  byte[] spx = encoder.encode(pcm);
}

try (SpeexDecoder decoder = new SpeexDecoder()) {
  byte[] spx = ...
  byte[] pcm = encoder.encode(spx);
}

Change log

1.0.3

  • Renamed share lib name, so you don't have to have the libspeex.so/libspeex.dylib deleted from your LD_LIBRARY_PATH.
  • Fixed pcm2wav issue in SpeexUtils.

1.0.2

  • Added safety check for close method.

1.0.2

  • Added safety check for close method.

1.0.1

  • Added SpeexUtils to convert between pcm and wav.

1.0

  • Speex encoder and decoder with fixed frame size of 320.
  • Changed static methods to prototypes.
  • Changed to use JNA.

0.0.1

  • Decode spx with hard-coded wide-band and frame size of 320

Versions

Version
1.0.3
1.0.2
1.0.1
1.0
0.0.2
0.0.1