I have the following code:
let audioOut = AVCaptureAudioDataOutput() audioOut.audioSettings = [AVFormatIDKey: kAudioFormatLinear