Post not yet marked as solved
Post marked as unsolved with 2 replies, 780 views
Hi all I am currently working on an iOS 10 app so not all of you may know the answer to my question. My main problem has been dealing with the new Speech Recognition API that is being introduced in iOS 10. Currently to get speech recognition started you must install an audio tap on one of iOS's audio busses using AVAudioInputNode (quite the long sentence I know). For some reason when calling the method that removes audio taps on a certain bus is not actually doing anything. I've tried moving this code between the top and bottom of the recognition task's completion block. This results in my app crashing when speech recognition begins. Here's the code I use to remove the bus below:[self.audioEngine stop];
[self.recognitionRequest endAudio];
[self.audioEngine.inputNode removeTapOnBus:0];
self.recognitionRequest = nil;
self.recognitionTask = nil;Also another thing of note, I'm using Xcode 8 beta 6. If any of you can help me with this, thank you in advance.