expyfun.io.read_wav#

expyfun.io.read_wav(fname, verbose=None)[source]#

Read in a WAV file

Parameters:
fnamestr

Filename to load.

verbosebool, str, int, or None

If not None, override default verbose level.

Returns:
dataarray

The WAV file data. Will be of datatype np.float64. If the data had been saved as integers (typical), this function will automatically rescale the data to be between -1 and +1. The result will have dimension n_channels x n_samples.

fsint

The wav sample rate