-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Audio Recording volume suddenly drops after approximately 3 seconds #404
Comments
Low volume on android is also a problem on my tests on two different devices (Samsung s21 ultra and Xperia 1 IV) |
I also have this issue on S23+. My recording is low volume in general but it seems fine on Windows. I do nothing special here:
There is a workaround with useLegacy: true on Android. |
legacy uses default audio source. This is now the default source for both recorder implementations. |
It looks like this could be related to this issue posted in the FlutterFlow GitHub - FlutterFlow/flutterflow-issues#2749 - I was able to fix my issue with the useLegacy:true workaround. |
Package version
record: ^5.1.2
Environment
Describe the bug
Audio Recording volume suddenly drop after recording is started for 3 seconds. So the recorded Audio will have a steady sound and suddenly a drop after about 3 seconds. This happens all the time on this device.
Future<void> startRecording() async { String fileName = '${UserConfig.current.recordedFileNamePrefix}_${DateTime.now().millisecondsSinceEpoch}.${MyRecorder.audioFileExtension}'; String audioFilePath = path.join(Utilities.tmpDir, fileName); await _audioRecorder.cancel(); monitoringStreamStarted = false; await _audioRecorder.start(const RecordConfig(encoder: AudioEncoder.wav), path: audioFilePath); }
I have also tried
RecordConfig(encoder: AudioEncoder.wav, autoGain: true, androidConfig: AndroidRecordConfig(useLegacy: true))
and changing the encoder to AAC, yet the same problem occursNote: Other android recording apps on this phone works fine
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Recorded volume should be consistent
The text was updated successfully, but these errors were encountered: