Hi,

Thank you for this amazing codec.

I've ported Codec2 to Android to work as library.
You can access the code here:
https://github.com/AhmedObaidi/codec2-android


It is very simple to use it within the Java Android

long con = Codec2.create(Codec2.CODEC2_MODE_1200);
int bitsSize = Codec2.getBitsSize(con);
int samples = Codec2.getSamplesPerFrame(con) * 2;
char[] bits = new char[bitsSize];

Codec2.encode(con,buff, bits);
Codec2.decode(con,buff, bits);

Codec2.destroy(con);

The buffer should be 16 bit PCM with 16000 sample per second.

Cheers, 

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to