如何快速提高 AV 录制质量。我想要高清录制

Mil*_*hah 2 avaudiorecorder ios swift

以下是我当前的 AVRecorder 设置,我想改进它以获得最高质量的录音。

let settings = [
                    AVFormatIDKey: Int(kAudioFormatMPEG4AAC),
                    AVSampleRateKey: 44100,
                    AVNumberOfChannelsKey: 2,
                    AVEncoderAudioQualityKey: AVAudioQuality.max.rawValue
                ]
Run Code Online (Sandbox Code Playgroud)

Mil*_*hah 5

为了提高 AV 录制质量,请更改 formatIDKey : kAudioFormatAppleLossless

let settings = [
                        AVFormatIDKey: kAudioFormatAppleLossless,
                        AVSampleRateKey:44100.0,
                        AVNumberOfChannelsKey:2,
                        AVEncoderAudioQualityKey:AVAudioQuality.max.rawValue
               ]
Run Code Online (Sandbox Code Playgroud)