title: Streaming Audio Files in iOS
body: <p>I need to send and receive audio files within my app. To be more performant and keep an open connection, I am looking to stream this data.</p>
  
  <p>I have looked at things like <a href="https://developer.apple.com/streaming/examples/" rel="nofollow noreferrer">HTTP Live Streaming</a> and <a href="https://github.com/mattgallagher/AudioStreamer" rel="nofollow noreferrer">AudioStreamer</a> based on answers to questions. However, these seem to be for <em>continuous</em> streaming, 1-way (read). Whereas I am sending a finite audio file (> 10 seconds) and then receiving one back. </p>
  
  <p>I am familiar with NSURLConnection and have reviewed this <a href="https://stackoverflow.com/questions/6611151/playing-audio-from-a-continuous-stream-of-data-ios">answer</a>. But again, this uses a <em>continuous</em>, 1-way stream.</p>
  
  <p>I would appreciate any recommend on the architecture to accomplish the above to help me get started.</p>