eelbrain.save.wav

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

Save an NDVar as wav file

Parameters
  • ndvar (NDVar) – Sound data. Values should either be floating point numbers between -1 and +1, or 16 bit integers.

  • filename (Union[Path, str, None]) – 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.