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

pull/638/head rc1.15.0-3
krille-chan 1 year ago
parent d247767042
commit 0dbaf09cc7
No known key found for this signature in database

@ -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,

Loading…
Cancel
Save