Merge pull request #1221 from RiveN000/develop

Fix: Correct video length
pull/1266/head
Jason 2 years ago committed by GitHub
commit d4fe91d90f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -132,6 +132,7 @@ class TTSEngine:
"-c copy " + f"{self.path}/{filename}.mp3") "-c copy " + f"{self.path}/{filename}.mp3")
clip = AudioFileClip(f"{self.path}/{filename}.mp3") clip = AudioFileClip(f"{self.path}/{filename}.mp3")
self.length += clip.duration self.length += clip.duration
self.last_clip_length = clip.duration
clip.close() clip.close()
try: try:
name = [f"{filename}_no_silence.mp3", "silence.mp3", f"{filename}.txt"] name = [f"{filename}_no_silence.mp3", "silence.mp3", f"{filename}.txt"]

Loading…
Cancel
Save