Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lspr98
Copy link

@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