Fix the "Audio buffer is not finite everywhere" error
This commit is contained in:
aufr33 2021-05-29 17:53:31 +03:00 committed by GitHub
parent 1f00ddc7a6
commit 661d421067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ def wave_to_spectrogram_mt(wave, hop_length, n_fft, mid_side=False, reverse=Fals
def combine_spectrograms(specs, mp):
l = min([specs[i].shape[2] for i in specs])
spec_c = np.ndarray(shape=(2, mp.param['bins'] + 1, l), dtype=np.complex64)
spec_c = np.zeros(shape=(2, mp.param['bins'] + 1, l), dtype=np.complex64)
offset = 0
bands_n = len(mp.param['band'])