This is documentation for an old release of SciPy (version 0.12.0). Read this page Search for this page in the documentation of the latest stable release (version 1.15.1).
scipy.io.wavfile.read
-
scipy.io.wavfile.read(file, mmap=False)[source]
Return the sample rate (in samples/sec) and data from a WAV file
Parameters : | file : file
mmap : bool, optional
Whether to read data as memory mapped. (Default: False)
New in version 0.12.0.
|
Returns : | rate : int
data : numpy array
|
Notes
- The file can be an open file or a filename.
- The returned sample rate is a Python integer
- The data is returned as a numpy array with a
data-type determined from the file.