Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def text2speech(text, sample):
|
|
| 30 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
| 31 |
if len(text) > 0:
|
| 32 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2")
|
| 33 |
-
wav = tts.tts_to_file(text=text, file_path="output.wav", speaker_wav=
|
| 34 |
return wav
|
| 35 |
|
| 36 |
@spaces.GPU
|
|
|
|
| 30 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
| 31 |
if len(text) > 0:
|
| 32 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2")
|
| 33 |
+
wav = tts.tts_to_file(text=text, file_path="output.wav", speaker_wav="sampleaudio/abraham.wav", language="en")
|
| 34 |
return wav
|
| 35 |
|
| 36 |
@spaces.GPU
|