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.