Skip to content

Commit 432a7dc

Browse files
authored
Fix Kokoro ISTFT (#166)
1 parent a01642e commit 432a7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlx_audio/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def istft(
118118
window_fn = STR_TO_WINDOW_FN.get(window.lower())
119119
if window_fn is None:
120120
raise ValueError(f"Unknown window function: {window}")
121-
w = window_fn(win_length)
121+
w = window_fn(win_length + 1)[:-1]
122122
else:
123123
w = window
124124

0 commit comments

Comments
 (0)