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
There are two possible ways to solve this problem.
inputFormat.channelCount. It may be throwing the error because the mic is in use in another application or somewhere else you yours.if(inputNode.inputFormat(forBus: 0).channelCount == 0){
NSLog("Not enough available inputs!")
return
}
audioEngine.audioEngine.reset()