Merge pull request #1221 from RiveN000/develop

Fix: Correct video length
This commit is contained in:
Jason authored and GitHub committed 2022-08-30 20:03:59 -04:00
commit d4fe91d90f
1 file changed
+1
+1
View File
@@ -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"]