I am creating one application which play recorded file on Android to iphone and vice-versa.
now I am using ,
audioRecorder = new MediaRecorder();
audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
audioRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
audioRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
file recorded using this code having size 85 kb /15 sec and a very poor quality.
if I use ,
audioRecorder = new MediaRecorder();
audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
audioRecorder.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
audioRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
then file size is 25kb/15 sec and quality much better than aac. but problem is that AMR is not playable in iPhone.
So please suggest recording schema for Android having better quality, affordable size and can play on iPhone also.