Swift 3 AVAudioEngine set microphone input format
I want to process the bytes read from the microphone using Swift 3 on my iOS. I currently use AVAudioEngine. print(inputNode.inputFormat(forBus: bus).settings) print(inputNode.inputFormat(forBus: bus).formatDescription) This gives me the following output: ["AVNumberOfChannelsKey": 1, "AVLinearPCMBitDepthKey": 32, "AVSampleRateKey": 16000, "AVLinearPCMIsNonInterleaved": 1, "AVLinearPCMIsBigEndianKey": 0, "AVFormatIDKey": 1819304813, "AVLinearPCMIsFloatKey": 1] <CMAudioFormatDescription 0x14d5bbb0 [0x3a5fb7d8]> { mediaType:'soun' mediaSubType:'lpcm' mediaSpecific: { ASBD: { mSampleRate: 16000