chore: Revert using opus codec in audiorecorder as iOS seems not to be able to play it

This commit is contained in:
krille-chan 2023-10-29 12:17:55 +01:00
parent d247767042
commit 0dbaf09cc7
No known key found for this signature in database

View file

@ -46,16 +46,8 @@ class RecordingDialogState extends State<RecordingDialog> {
}
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,