Spaces:
Sleeping
Sleeping
waysolong
commited on
Commit
·
a4d821b
1
Parent(s):
e18695a
fix bug
Browse files
mtts/models/vocoder/VocGAN/utils/audio_processing.py
CHANGED
@@ -47,7 +47,7 @@ def window_sumsquare(window, n_frames, hop_length=200, win_length=800,
|
|
47 |
# Compute the squared window at the desired length
|
48 |
win_sq = get_window(window, win_length, fftbins=True)
|
49 |
win_sq = librosa_util.normalize(win_sq, norm=norm)**2
|
50 |
-
win_sq = librosa_util.pad_center(win_sq, n_fft)
|
51 |
|
52 |
# Fill the envelope
|
53 |
for i in range(n_frames):
|
|
|
47 |
# Compute the squared window at the desired length
|
48 |
win_sq = get_window(window, win_length, fftbins=True)
|
49 |
win_sq = librosa_util.normalize(win_sq, norm=norm)**2
|
50 |
+
win_sq = librosa_util.pad_center(win_sq, size=n_fft)
|
51 |
|
52 |
# Fill the envelope
|
53 |
for i in range(n_frames):
|