title: SFSpeechRecognizer 216 Error with Multiple Requests
body: <p>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.  </p>
  
  <p>Despite numerous questions about what these errors, 216, 203 and others, might mean on SO and other sites, no one seems sure.  Some <a href="https://stackoverflow.com/questions/44767316/ios-speech-recognition-error-domain-kafassistanterrordomain-code-216-null">suggest the problem</a> is that you need to include a line</p>
  
  <pre><code>request.endAudio() // Added line to mark end of recording
  </code></pre>
  
  <p>Others say, you can only do this from within the completion block or else you will <a href="http://%20%22endAudio%22%20not%20allow%20to%20call%20from%20outside%20the%20recognitionTaskWithRequest%20block," rel="nofollow noreferrer">get a 203 error</a>:</p>
  
  <p>Another person in <a href="https://forums.developer.apple.com/thread/51938" rel="nofollow noreferrer">an Apple Developer forum</a> 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 <a href="https://developer.nuance.com/public/Help/DragonMobileSDKReference_iOS/Error-codes.html" rel="nofollow noreferrer">does have an error 216</a>:  </p>
  
  <pre><code>Invalid action-setup data were detected. The action cannot be executed. Contact Nuance Support.
  </code></pre>
  
  <p>I have added the <code>request.endAudio()</code> but I can't seem to eliminate this error that generally pops up by the third or fourth recognition task.</p>
  
  <p>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.</p>
  
  <p>Thanks for any suggestions or insights.</p>