开发者

Encoding raw audio to mp3/ogg

开发者 https://www.devze.com 2023-01-20 04:21 出处:网络
I have a buff开发者_高级运维er of raw audio coming from AudioRecord and I want to convert it to mp3 or any other format for emailing it.You could probably compile http://lame.sourceforge.net/ as a jni

I have a buff开发者_高级运维er of raw audio coming from AudioRecord and I want to convert it to mp3 or any other format for emailing it.


You could probably compile http://lame.sourceforge.net/ as a jni library.

Be sure to read and understand http://lame.sourceforge.net/license.txt

I'm sure someone has some java encoder you could use if you aren't talking about tons of data.


You might look at JLayer (http://www.javazoom.net/javalayer/javalayer.html) from JavaZoom. It's 100% Java and I think it will do what you want.

Good luck.

0

精彩评论

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