Spaces:
Sleeping
Sleeping
Update audio_processing.py
Browse files- audio_processing.py +1 -1
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):
|