Abrahamau commited on
Commit
fafe326
·
verified ·
1 Parent(s): b6e2dcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=sample, language="en")
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