Skip to content

Fix "Audio buffer is not finite everywhere" by force initializing buffer for spec_s#1359

Open
lspr98 wants to merge 1 commit into
Anjok07:masterfrom
lspr98:master
Open

Fix "Audio buffer is not finite everywhere" by force initializing buffer for spec_s#1359
lspr98 wants to merge 1 commit into
Anjok07:masterfrom
lspr98:master

Conversation

@lspr98
Copy link
Copy Markdown

@lspr98 lspr98 commented May 21, 2024

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_to_wave, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant