mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 09:16:19 +00:00
Support for upgraded moviepy
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user