Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
|
|
11 |
|
12 |
@spaces.GPU(enable_queue=True)
|
13 |
def clone(text, audio):
|
14 |
-
tts.tts_to_file(text=text, speaker_wav=audio, language="
|
15 |
return "./output.wav"
|
16 |
|
17 |
iface = gr.Interface(fn=clone,
|
@@ -25,11 +25,11 @@ iface = gr.Interface(fn=clone,
|
|
25 |
|
26 |
Please ❤️ this Space. <a href="mailto: [email protected]">Email me</a>.
|
27 |
""",
|
28 |
-
theme = gr.themes.
|
29 |
-
examples=[["Hey! It's me Dorthy, from the Wizard of Oz. Type in whatever you'd like me to say.","./audio/Wizard-of-Oz-Dorthy.wav"],
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
iface.launch()
|
|
|
11 |
|
12 |
@spaces.GPU(enable_queue=True)
|
13 |
def clone(text, audio):
|
14 |
+
tts.tts_to_file(text=text, speaker_wav=audio, language="zh-cn", file_path="./output.wav")
|
15 |
return "./output.wav"
|
16 |
|
17 |
iface = gr.Interface(fn=clone,
|
|
|
25 |
|
26 |
Please ❤️ this Space. <a href="mailto: [email protected]">Email me</a>.
|
27 |
""",
|
28 |
+
theme = gr.themes.Dark(),
|
29 |
+
# examples=[["Hey! It's me Dorthy, from the Wizard of Oz. Type in whatever you'd like me to say.","./audio/Wizard-of-Oz-Dorthy.wav"],
|
30 |
+
# ["It's me Vito Corleone, from the Godfather. Type in whatever you'd like me to say.","./audio/Godfather.wav"],
|
31 |
+
# ["Hey, it's me Paris Hilton. Type in whatever you'd like me to say.","./audio/Paris-Hilton.mp3"],
|
32 |
+
# ["Hey, it's me Megan Fox from Transformers. Type in whatever you'd like me to say.","./audio/Megan-Fox.mp3"],
|
33 |
+
# ["Hey there, it's me Jeff Goldblum. Type in whatever you'd like me to say.","./audio/Jeff-Goldblum.mp3"],
|
34 |
+
# ["Hey there, it's me Heath Ledger as the Joker. Type in whatever you'd like me to say.","./audio/Heath-Ledger.mp3"],])
|
35 |
iface.launch()
|