eelbrain.save.wav

eelbrain.save.wav(ndvar, filename=None, toint=False)

Save an NDVar as wav file

Parameters:
ndvar : NDVar (time,)

Sound data. Values should either be floating point numbers between -1 and +1, or 16 bit integers.

filename : path-like

Where to save. If unspecified a file dialog will ask for the location.

toint : bool

Convert floating point data to 16 bit integer (default False).

Notes

Uses scipy.io.wavfile.