How to read a audio file in Python similar to Matlab audioread?
<p>I'm using <code>wavefile.read()</code> in Python to import a audio file to Python. What I want is read a audio file where every sample is in double and normalized to -1.0 to +1.0 similar to Matlab <code>audioread()</code> function. How can I do it ?</p>

<p>Use <a href="http://pysoundfile.readthedocs.io/en/latest/#soundfile.read" rel="nofollow">read</a> function of the <a href="https://pypi.python.org/pypi/PySoundFile/" rel="nofollow">PySoundFile</a> package.  By default it will return exactly what you request: a numpy array containing the sound file samples in double-precision (<code>Float64</code>) format in the range <code>-1.0</code> to <code>+1.0</code>.</p>

python matlab audio