Spaces:
Runtime error
Runtime error
Commit
•
c926734
1
Parent(s):
8a0d003
Update Text_to_speech.py
Browse files- Text_to_speech.py +2 -2
Text_to_speech.py
CHANGED
@@ -4,9 +4,9 @@ import os
|
|
4 |
|
5 |
# Get device
|
6 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
7 |
-
os.system("!pip -y install tts_models/multilingual/multi-dataset/xtts_v2")
|
8 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2",progress_bar=False).to(device)
|
9 |
-
|
|
|
10 |
|
11 |
def Text_to_Speech(transcribe_data,lang,voice):
|
12 |
# List available 🐸TTS models
|
|
|
4 |
|
5 |
# Get device
|
6 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
7 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2",progress_bar=False).to(device)
|
8 |
+
default_answer = "y"
|
9 |
+
answer = input(" | | > ") or default_answer
|
10 |
|
11 |
def Text_to_Speech(transcribe_data,lang,voice):
|
12 |
# List available 🐸TTS models
|