Reputation: 791
I'm recording audio on Android. I'm using this module: https://github.com/yagitoshiro/TiAudioRecorder
With .3gp
extension I can record and replay the audio perfectly, but I need to record this audio with .wav
or .mp3
. With this extension I can't replay the sound, the app can't open the audio.
I saw at the module this line:
this.recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
and searching on Android docs I found that ouput format only can be 3gp
or mp4
. wav
is not available?
http://developer.android.com/reference/android/media/MediaRecorder.OutputFormat.html
Upvotes: 0
Views: 124
Reputation: 3532
You can not obtain on the fly mp3 encoding from MediaRecorder. Check also the accepted answer from this question.
You can however use third party library for post processing like Gstreamer
Upvotes: 1