fix: close clip once finished

This commit is contained in:
Callum Leslie committed 2022-07-04 19:59:44 +01:00
1 parent a335e67c8c
commit 8365121865
1 file changed
+1
+1
View File
@@ -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", "")