Fixes voice message audio quality.

This commit is contained in:
Stefan Ceriu
2021-08-06 12:16:57 +03:00
committed by Stefan Ceriu
parent fb1cbe181c
commit 2a6f0233a8
2 changed files with 4 additions and 3 deletions
@@ -51,7 +51,8 @@ class VoiceMessageAudioRecorder: NSObject, AVAudioRecorderDelegate {
func recordWithOutputURL(_ url: URL) {
let settings = [AVFormatIDKey: Int(kAudioFormatMPEG4AAC),
AVSampleRateKey: 12000,
AVSampleRateKey: 48000,
AVEncoderBitRateKey: 128000,
AVNumberOfChannelsKey: 1,
AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue]