3

I have an implementation of AVAudio and SFSpeechRecognizer that generally works fine the first few times. However, after one or more requests, I am getting a 216 Error.

Despite numerous questions about what these errors, 216, 203 and others, might mean on SO and other sites, no one seems sure. Some suggest the problem is that you need to include a line

request.endAudio() // Added line to mark end of recording

Others say, you can only do this from within the completion block or else you will get a 203 error:

Another person in an Apple Developer forum suggested that the 216 error is actually a Nuance Error because, they say, Nuance handles some of the backend processing for Apple. Nuance's SDK for IOS actually does have an error 216:

Invalid action-setup data were detected. The action cannot be executed. Contact Nuance Support.

I have added the request.endAudio() but I can't seem to eliminate this error that generally pops up by the third or fourth recognition task.

Can anyone suggest a definite solution to this or shed additional light on what it does. It would be awesome if an Apple engineer were to answer definitively.

Thanks for any suggestions or insights.

user6631314
  • 1,751
  • 1
  • 13
  • 44
  • You did quite a good research through all these SO topics. I have a similar problem The next solved: `[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionMixWithOthers error:&error];` – Aleksey Potapov Nov 19 '18 at 13:06
  • @user6631314 how did you solve this problem? Would you mind sharing your solution? Thanks! – MJQZ1347 Apr 15 '19 at 07:34

0 Answers0