AVAudioEngine downsample issue

An other way to do it , with AVAudioConverter in Swift 5 let engine = AVAudioEngine() func setup() { let input = engine.inputNode let bus = 0 let inputFormat = input.outputFormat(forBus: bus ) guard let outputFormat = AVAudioFormat(commonFormat: .pcmFormatFloat32, sampleRate: 8000, channels: 1, interleaved: true), let converter = AVAudioConverter(from: inputFormat, to: outputFormat) else{ return } … Read more