title: How to interpret audio bytes?
body: <p>I want to write a Voice Stress Analysis tool. I'm opening the audio stream for reading:</p>
  
  <pre><code>TargetDataLine line;
  AudioFormat format = new AudioFormat((float) 44100, 16, 1, true, false);
  DataLine.Info info = new DataLine.Info(TargetDataLine.class, format);
  line = (TargetDataLine) AudioSystem.getLine(info);
  line.open(format);
  // Begin audio capture.
  line.start();
  </code></pre>
  
  <p>and then looping:</p>
  
  <pre><code>// Read the next chunk of data from the TargetDataLine.
  numBytesRead = line.read(externalData, 0, externalData.length);
  </code></pre>
  
  <p>I get an array with bytes as externalData is defined as follows:</p>
  
  <pre><code>public static byte[] externalData = new byte[1024];
  </code></pre>
  
  <p>What I want to know is how to interpret this data? I tried to plot it by byte value, but I guess it's wrong. <img src="https://i.stack.imgur.com/gYzJz.png" alt="Plotted bytes"></p>
  
  <p>X axis is time and Y axis is byte value.</p>
  
  <p>PS: Where can I find more information about McQuiston-Ford algorithm?</p>