From 24e8486715b3c88d92a0a93a8ff747836eb0325b Mon Sep 17 00:00:00 2001 From: Moctar Haiz Date: Mon, 8 Apr 2024 21:16:49 +0200 Subject: [PATCH] Update xtts.py --- TTS/tts/models/xtts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/tts/models/xtts.py b/TTS/tts/models/xtts.py index aec1a098..f95ca8da 100644 --- a/TTS/tts/models/xtts.py +++ b/TTS/tts/models/xtts.py @@ -274,7 +274,7 @@ class Xtts(BaseTTS): for i in range(0, audio.shape[1], 22050 * chunk_length): audio_chunk = audio[:, i : i + 22050 * chunk_length] - # if the chunk is too short ignore it + # if the chunk is too short ignore it if audio_chunk.size(-1) < 22050 * 0.33: continue