title: Read wav file from python and convert frames into RAW s16le string
body: <p>I'm reading a file in Python using either of librosa, wave or soundfile libraries and I need to push the chunk (any size) to a HTTP stream. By specification, stream string input requires me to convert frames into RAW s16le format.</p>
  
  <p>I tried multiple options including:</p>
  
  <pre><code>soundarray,rate = librosa.load(pathToWavFile, dtype="&lt;i2")
  str = b''.join(soundarray)
  </code></pre>
  
  <p>But this just creates an empty audio stream. What am I doing wrong?</p>