1 Unstar Star 3 Fork 1

matrixy / acodecMIT

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
A Java Audio Codec for G711A/G711U/ADPCM spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

acodec

A Java Audio Codec for G711A/G711U/ADPCM. Pure java implements, no any other 3rd-party library required.

Audio Codec

Codec Support?
ADPCM Y
G711A (alaw) Y
G711U (ulaw) Y
G726 N

Maven

<dependency>
  <groupId>cn.org.hentai</groupId>
  <artifactId>acodec</artifactId>
  <version>1.0.0</version>
</dependency>

Example

class Test
{
    public static void main(String[] args) throws Exception
    {
        // create AudioCodec instance by name
        AudioCodec codec = CodecFactory.getCodec("adpcm");
        
        // prepare some encodec adpcm data
        byte[] rawADPCMData;
        
        // decode adpcm to pcm
        byte[] pcmData = codec.toPCM(rawADPCMData);
        
        // encode pcm to adpcm
        byte[] adpcmData = codec.fromPCM(pcmData);
    }
}

Comments ( 0 )

Sign in for post a comment

1
https://gitee.com/matrixy/acodec.git
git@gitee.com:matrixy/acodec.git
matrixy
acodec
acodec
master

Search