fix: close clip once finished

pull/863/head
Callum Leslie 3 years ago
parent a335e67c8c
commit 8365121865
No known key found for this signature in database
GPG Key ID: D382C4AFEECEAA90

@ -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", "")

Loading…
Cancel
Save