开发者

8bit PCMU Encoder/Decoder

I have 16 bit PCM audio and I want to convert it to 8bit PCMU. As far as I know 16bit to 8 bit conversion is easy - just drop the last 8 bits from each sample.

I want to know how to convert 8 bit pcm to 8 bit pcmu? Any article or sample code will be great!

This is for a mobile platform where no ready-to-us开发者_运维知识库e frameworks are available so I will need to do that with custom implementation.


Check the wikipedia article regarding the μ-law algorithm .

At the bottom it mentions this article where the author shows how to compress 16 samples to 8 bit PCMU samples in C code. Porting that code to Java is trivial.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜