diff --git a/android/src/main/java/audiorecorder2/audiorecorder2/AudioRecorder2Plugin.java b/android/src/main/java/audiorecorder2/audiorecorder2/AudioRecorder2Plugin.java index 40eafaa..5a02c16 100644 --- a/android/src/main/java/audiorecorder2/audiorecorder2/AudioRecorder2Plugin.java +++ b/android/src/main/java/audiorecorder2/audiorecorder2/AudioRecorder2Plugin.java @@ -96,7 +96,7 @@ private void startRecording() { mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(getOutputFormatFromString(mExtension)); mRecorder.setOutputFile(mFilePath); - mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); + mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); try { mRecorder.prepare(); diff --git a/pubspec.yaml b/pubspec.yaml index aaff716..0571513 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,8 +11,8 @@ dependencies: path: ^1.5.1 flutter: sdk: flutter - path_provider: ^0.4.1 - file: ^5.0.4 + path_provider: ^2.0.0 + file: ^6.0.0-nullsafety.2 # For information on the generic Dart part of this file, see the # following page: https://www.dartlang.org/tools/pub/pubspec