For everyone we were interested in, we refused to support anything other than Android 2.3, and ourselves changed the Cordova native code.
If you use Cordova 3+, I forked the project with code changes here
For previous releases, just change AudioPlayer.java (this is from Cordoba 2.9)
// support only 2.3.3+ to be able to record AAC with 44100 audio sampling this.recorder.setAudioSamplingRate(44100); this.recorder.setAudioEncodingBitRate(96000); this.recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); //this.recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);// THREE_GPP); //this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);// //AMR_NB);
Mirko
source share