Support for upgraded moviepy

This commit is contained in:
2024-03-02 15:19:30 +01:00
parent 6b6b18507a
commit 455514e475
13 changed files with 87 additions and 68 deletions

View File

@@ -1,7 +1,7 @@
from abc import abstractmethod
from typing import TypedDict
import moviepy.editor as mp
import moviepy as mp
import whisper_timestamped as wt
from torch.cuda import is_available

View File

@@ -89,7 +89,7 @@ class CoquiTTSEngine(BaseTTSEngine):
"ko", # Korean
"hi", # Hindi
]
num_options = 4
num_options = 5
def __init__(self, options: list):
super().__init__()
@@ -99,7 +99,7 @@ class CoquiTTSEngine(BaseTTSEngine):
self.to_force_duration = options[2]
self.duration = options[3]
os.environ["COQUI_TOS_AGREED"] = options[4]
os.environ["COQUI_TOS_AGREED"] = str(options[4])
try:
self.tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2")
except: