title: How to convert 32bit wav file in a numpy array to a 24bit wav file?
body: <p>I would like to convert a 32-bit wav numpy array to a 24-bit wav numpy array using python3 and the numpy library.</p>
  <p>I am reading the file like this:</p>
  <pre><code>import numpy as np
      sample_rate, file_info = read(filepath)
      np_array = np.array(file_info)
  </code></pre>
  <p>Now based on the dtype which can be extracted via
  something like this</p>
  <pre><code>if (str(np_array.dtype) == 'int32'):
  </code></pre>
  <p>I would like to retranscode the np_array to become a 24bit array.
  I need to do this for analysis purposes. The goal is - not to generate a new file.</p>
  <p>Any hints in how to do this effectively?</p>
  <p>Thank you</p>