fix: close clip once finished
This commit is contained in:
1 file changed
+1
@@ -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", "")
|
||||
|
||||
Reference in new issue
Block a user