diff --git a/src/android/AudioPlayer.java b/src/android/AudioPlayer.java index 861421e7..40b12378 100644 --- a/src/android/AudioPlayer.java +++ b/src/android/AudioPlayer.java @@ -151,8 +151,8 @@ public void startRecording(String file) { this.audioFile = file; this.recorder = new MediaRecorder(); this.recorder.setAudioSource(MediaRecorder.AudioSource.MIC); - this.recorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS); // RAW_AMR); - this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); //AMR_NB); + this.recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); + this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); this.tempFile = generateTempFile(); this.recorder.setOutputFile(this.tempFile); try {