Spaces:
Sleeping
Sleeping
josh-r-meyer
commited on
Commit
•
39fe02d
1
Parent(s):
22afae0
xtts_v1.1
Browse files
app.py
CHANGED
@@ -39,9 +39,9 @@ st = os.stat('ffmpeg')
|
|
39 |
os.chmod('ffmpeg', st.st_mode | stat.S_IEXEC)
|
40 |
|
41 |
# Load TTS
|
42 |
-
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1")
|
43 |
|
44 |
-
model_path = os.path.join(get_user_data_dir("tts"), "tts_models--multilingual--multi-dataset--xtts_v1")
|
45 |
config = XttsConfig()
|
46 |
config.load_json(os.path.join(model_path, "config.json"))
|
47 |
model = Xtts.init_from_config(config)
|
|
|
39 |
os.chmod('ffmpeg', st.st_mode | stat.S_IEXEC)
|
40 |
|
41 |
# Load TTS
|
42 |
+
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1.1")
|
43 |
|
44 |
+
model_path = os.path.join(get_user_data_dir("tts"), "tts_models--multilingual--multi-dataset--xtts_v1.1")
|
45 |
config = XttsConfig()
|
46 |
config.load_json(os.path.join(model_path, "config.json"))
|
47 |
model = Xtts.init_from_config(config)
|