myRecorder = new MediaRecorder();
myRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
myRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
myRecorder.setAudioEncoder(MediaRecorder.OutputFormat.AMR_NB);
myRecorder.setOutputFile(path);
Am using this code to record audio in android. While sending recorded file to web service it throws error because .3gpp format is not allowed. If I send mp3 file it's working.How can I handle it. I surfed for it but couldn't get.
Referred this link: Converting 3gp/amr audio file to mp3 in java