From 0dbaf09cc7168b18a4554a6eea8abce638e19da7 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 29 Oct 2023 12:17:55 +0100 Subject: [PATCH] chore: Revert using opus codec in audiorecorder as iOS seems not to be able to play it --- lib/pages/chat/recording_dialog.dart | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/pages/chat/recording_dialog.dart b/lib/pages/chat/recording_dialog.dart index 0d18867a..f65e9b95 100644 --- a/lib/pages/chat/recording_dialog.dart +++ b/lib/pages/chat/recording_dialog.dart @@ -46,16 +46,8 @@ class RecordingDialogState extends State { } await WakelockPlus.enable(); - // We try to pick Opus where supported, since that is a codec optimized - // for speech as well as what the voice messages MSC uses. - final audioCodec = - (await _audioRecorder.isEncoderSupported(AudioEncoder.opus)) - ? AudioEncoder.opus - : AudioEncoder.aacLc; - await _audioRecorder.start( - RecordConfig( - encoder: audioCodec, + const RecordConfig( autoGain: true, noiseSuppress: true, echoCancel: true,