Spaces:
Sleeping
Sleeping
Kikirilkov
commited on
Commit
•
998ed67
1
Parent(s):
9ec632b
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from TTS.api import TTS
|
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
16 |
|
17 |
# Init TTS
|
18 |
-
tts = TTS("/home/user/.local/share/tts/tts_models
|
19 |
|
20 |
def voice_clone(text: str, speaker_wav: str, language: str):
|
21 |
# Run TTS
|
|
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
16 |
|
17 |
# Init TTS
|
18 |
+
tts = TTS("/home/user/.local/share/tts/tts_models/multilingual/multi-dataset/xtts_v2").to(device)
|
19 |
|
20 |
def voice_clone(text: str, speaker_wav: str, language: str):
|
21 |
# Run TTS
|