Compress Audio from Microphone
Hi, I am developing an app that records voice from mic and needs to save it in the disk then send it via email. I got it no problem. I get the bytes and tranform it to wav format using the WAVWriter class.
But the wav file is HUGE. As I said, I need to send it via Email. A 10 seconds wav file is almos 1MB =/. I researched and I found a class that transforms WAV to MP3: http://code.google.com/p/flash-kikko/
Thats worked, but the resulting file is relatively big. it encodes to 128kb mp3 and I cant change the bitrate. And 128 just to a voice sound is much much more than I need. The resulting file is a bit larger than I would like.
But the BIG BIG problem is that, it takes almost 15 seconds to encode a 10 second wav to MP3 in a galaxy S or a galaxy Tab device.
It takes TOO long to encode and the resulting file is really big compared to the voice recorder that is avaliable in android devices. It records the voice, it takes 0 seconds to encode to the final file. and the file is MUCH smaller than the one I am getting.
Is there a way to compress the microphone data I have, to get a smaller file, like the voice recorder in a efficient way android devices do?
'Is there a way for my Air app to use the android's voice recorder to record the sound for my application?
Thank you very much.
