Android: Enregistrer le son au format mp3

Je fais construire une application android, avoir la fonctionnalité de capture de son à travers un microphone et de jouer à travers le casque d'écoute. Pour cela, j'ai utilisé "AudioRecord" et "AudioTrack". Voici une partie du code que j'utilise(pour la compréhension)

mInBufferSize = AudioRecord.getMinBufferSize(mSampleRate,
            AudioFormat.CHANNEL_CONFIGURATION_MONO, mFormat);
mOutBufferSize = AudioTrack.getMinBufferSize(mSampleRate,
            AudioFormat.CHANNEL_CONFIGURATION_MONO, mFormat);
mAudioInput = new AudioRecord(MediaRecorder.AudioSource.MIC,
            mSampleRate, AudioFormat.CHANNEL_CONFIGURATION_MONO, mFormat,
            mInBufferSize);
mAudioOutput = new AudioTrack(AudioManager.STREAM_MUSIC, mSampleRate,
            AudioFormat.CHANNEL_CONFIGURATION_MONO, mFormat,
            mOutBufferSize, AudioTrack.MODE_STREAM);

Mais le principal problème est que je veux enregistrer son entrant en format mp3? S'il vous plaît aider moi, je vous apprécie vraiment...

Merci d'Avance

source d'informationauteur user609239