title: Download audio stream, chunking on silence gaps
body: <p>What strategies can I use for downloading audio/mpeg data from a never-ending stream and chunking what’s downloaded when there are periods of silence?</p>
  <p>Currently I’m using <code>timeout</code> and <code>wget</code> to download N-second chunks of data.  This isn’t ideal since continuous content extends beyond the N-second window boundary and consequently sounds like an interruption during playback.</p>
  <p>I’m wondering if there’s some way I can continuously download the stream to a temporary file, read it in parallel, evaluate silence gap candidates, and copy chunks of data between the found silence gaps.  I don’t know how to do this though.</p>