Spaces:
elioonpc
/
Runtime error

Vaibhav Srivastav commited on
Commit
fc50d18
1 Parent(s): 142fdc7
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
2
  from TTS.api import TTS
3
 
4
- tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1", gpu=True)
 
5
 
6
 
7
  def predict(prompt, language, audio_file_pth):
@@ -17,7 +18,7 @@ def predict(prompt, language, audio_file_pth):
17
  )
18
 
19
 
20
- title = "XTTS: MVP"
21
 
22
  gr.Interface(
23
  fn=predict,
@@ -46,11 +47,13 @@ gr.Interface(
46
  "zh",
47
  ],
48
  max_choices=1,
 
49
  ),
50
  gr.Audio(
51
  label="Reference Audio",
52
  info="Upload a reference audio for target speaker voice",
53
  type="filepath",
 
54
  ),
55
  ],
56
  outputs=[
 
1
  import gradio as gr
2
  from TTS.api import TTS
3
 
4
+ tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1")
5
+ tts.to("cuda")
6
 
7
 
8
  def predict(prompt, language, audio_file_pth):
 
18
  )
19
 
20
 
21
+ title = "Coqui🐸 XTTS"
22
 
23
  gr.Interface(
24
  fn=predict,
 
47
  "zh",
48
  ],
49
  max_choices=1,
50
+ value="en"
51
  ),
52
  gr.Audio(
53
  label="Reference Audio",
54
  info="Upload a reference audio for target speaker voice",
55
  type="filepath",
56
+ value="examples/en_speaker_6.wav"
57
  ),
58
  ],
59
  outputs=[
examples/en_speaker_6.wav ADDED
Binary file (300 kB). View file
 
examples/en_speaker_9.wav ADDED
Binary file (356 kB). View file