vak.prep.unit_dataset.unit_dataset.save_spect#

vak.prep.unit_dataset.unit_dataset.save_spect(spect_to_save: SpectToSave, output_dir: str | Path) str[source]#

Save a spectrogram array to an npy file.

The filename is build from the attributes of spect_to_save, saved in output dir, and the full path is returned as a string.

Parameters:
Returns:

npy_path – Path to npy file containing spectrogram inside output_dir

Return type:

str