I am implementing Speech Recognition in my app. When I first present the view controller with the speech recognition logic, everything works fine. However, when I try presen
You can replace this code:
let recordingFormat = node.outputFormat(forBus: 0)
with the following:
let recordingFormat = AVAudioFormat(standardFormatWithSampleRate: 44100, channels: 1)
This code fixed the problem.