1

I have a buffer of raw audio coming from AudioRecord and I want to convert it to mp3 or any other format for emailing it.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Eli Konky
  • 2,697
  • 1
  • 20
  • 17
  • 1
    possible duplicate of [How to encode a WAV to a mp3 on a Android device](http://stackoverflow.com/questions/3641920/how-to-encode-a-wav-to-a-mp3-on-a-android-device) – Colin Hebert Oct 12 '10 at 18:33

2 Answers2

0

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.

Chris Stratton
  • 39,853
  • 6
  • 84
  • 117
0

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.

cjstehno
  • 13,468
  • 4
  • 44
  • 56