Closed MarcAMartin closed 6 years ago
Hello,
How do you increase the audio sample rate -- I see the default is 12000
Per var assetWriterAudioInputSettings: [String : Any] { return [ AVFormatIDKey: Int(kAudioFormatMPEG4AAC), AVSampleRateKey: 12000, AVNumberOfChannelsKey: 1, AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue ] }
Thanks, Marc
I just just created a fork instead.
Hello,
How do you increase the audio sample rate -- I see the default is 12000
Per var assetWriterAudioInputSettings: [String : Any] { return [ AVFormatIDKey: Int(kAudioFormatMPEG4AAC), AVSampleRateKey: 12000, AVNumberOfChannelsKey: 1, AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue ] }
Thanks, Marc