eelbrain.load.wav
- eelbrain.load.wav(filename=None, name=None, backend='wave')[source]
Load a wav file as NDVar
- Parameters:
filename (Path | str | None) – Filename of the wav file. If not filename is specified, a file dialog is shown to select one.
name (str | None) – NDVar name (default is the file name).
backend (Literal['wave', 'scipy', 'librosa']) – Whether to read the file using the builtin
wavemodule,scipy.io.wavfile, orlibrosa.load().
- Returns:
wav – NDVar with the wav file’s data. If the file contains a single channel, the NDVar dimensions are
(time,); if it contains several channels, they are(time, channel).wav.infocontains entries forfilenameandsamplingrate.- Return type:
Notes
Uses
scipy.io.wavfile.