title: In Java's built-in sound framework, can an audio source stream have multiple consumers?
body: <p>Is there an easy way to have multiple independent, concurrent consumers to an audio source (e. g. a microphone line) inside a single Java VM instance with Java's built-in audio framework (<code>javax.sound.sampled.*</code>)? Since I'm using the audio processing library <a href="https://github.com/JorenSix/TarsosDSP" rel="nofollow">TarsosDSP</a> anyway, can it be of help with that problem? Or do I need to implement my own audio mixer?</p>
  
  <p>My current problem is, that I want to</p>
  
  <ol>
  <li>process an audio stream from a microphone input with <a href="https://github.com/JorenSix/TarsosDSP" rel="nofollow">TarsosDSP</a> (to derive a spectrogram amongst other analyses) and</li>
  <li>record snippets of that stream to transcribe speech to text, which may require watching for volume threshold for automatic activation.</li>
  </ol>