Initializing spec_s with np.ndarray can contain Nan / Inf according to the numpy docs, since it does not overwrite the underlying buffer memory. This causes the "Audio buffer is not finite everywhere" error in _cmb_spectrogram_towave, as already reported in multiple issues (#1021, #1045, #1147, #1153, #1262, to name a few). Initializing with np.zeros populates the buffer with zeros, avoiding the issue.
Initializing spec_s with np.ndarray can contain Nan / Inf according to the numpy docs, since it does not overwrite the underlying buffer memory. This causes the "Audio buffer is not finite everywhere" error in _cmb_spectrogram_towave, as already reported in multiple issues (#1021, #1045, #1147, #1153, #1262, to name a few). Initializing with np.zeros populates the buffer with zeros, avoiding the issue.