From 41dcd6e592960ac29b4e0955444add3f502b0c47 Mon Sep 17 00:00:00 2001 From: RiveN000 <61630074+RiveN000@users.noreply.github.com> Date: Mon, 29 Aug 2022 18:12:58 +0200 Subject: [PATCH] Correct video length --- TTS/engine_wrapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/TTS/engine_wrapper.py b/TTS/engine_wrapper.py index 66cec4d..1324118 100644 --- a/TTS/engine_wrapper.py +++ b/TTS/engine_wrapper.py @@ -132,6 +132,7 @@ class TTSEngine: "-c copy " + f"{self.path}/{filename}.mp3") clip = AudioFileClip(f"{self.path}/{filename}.mp3") self.length += clip.duration + self.last_clip_length = clip.duration clip.close() try: name = [f"{filename}_no_silence.mp3", "silence.mp3", f"{filename}.txt"]