From 8365121865d995929df86576eaa75c6d8edd329f Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Mon, 4 Jul 2022 19:59:33 +0100 Subject: [PATCH] fix: close clip once finished --- TTS/engine_wrapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/TTS/engine_wrapper.py b/TTS/engine_wrapper.py index fd2d36b..017cf79 100644 --- a/TTS/engine_wrapper.py +++ b/TTS/engine_wrapper.py @@ -100,6 +100,7 @@ class TTSEngine: # self.length += sox.file_info.duration(f"{self.path}/{filename}.mp3") clip = AudioFileClip(f"{self.path}/{filename}.mp3") self.length += clip.duration + clip.close() def process_text(text: str): lang = getenv("POSTLANG", "")