mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 13:05:11 +00:00
chore: Revert using opus codec in audiorecorder as iOS seems not to be able to play it
This commit is contained in:
parent
d247767042
commit
0dbaf09cc7
1 changed files with 1 additions and 9 deletions
|
@ -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…
Reference in a new issue