title: AVAudioEngine with Today Extension
body: <p>Hello I want to add the Speech framework to an iOS 10 Today Extension.</p>
  
  <p>I try to use SpeakToMe sample <a href="https://developer.apple.com/library/content/samplecode/SpeakToMe/Introduction/Intro.html" rel="nofollow noreferrer">https://developer.apple.com/library/content/samplecode/SpeakToMe/Introduction/Intro.html</a> to record audio with AVAudioEngine.</p>
  
  <p>But I get an exception when I try to start the audio engine</p>
  
  <pre><code>try audioEngine.start()
  
  2016-10-04 22:21:24.658964 VoiceReco[4225:1230467] [aurioc] 1316: AUIOClient_StartIO failed (561145187)
  2016-10-04 22:21:24.663743 VoiceReco[4225:1230467] [central] 54:   ERROR:    [0x1af158c40] &gt;avae&gt; AVAudioEngineGraph.mm:1175: Start: error 561145187
  </code></pre>
  
  <p>The sample code from apple works fine if I use the normal view controller without my extension. Does anyone know a workaround for this?</p>