mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +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();
|
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(
|
await _audioRecorder.start(
|
||||||
RecordConfig(
|
const RecordConfig(
|
||||||
encoder: audioCodec,
|
|
||||||
autoGain: true,
|
autoGain: true,
|
||||||
noiseSuppress: true,
|
noiseSuppress: true,
|
||||||
echoCancel: true,
|
echoCancel: true,
|
||||||
|
|
Loading…
Reference in a new issue