Vaibhav Srivastav
commited on
Commit
•
0dfedcd
1
Parent(s):
533ef97
up
Browse files- app.py +23 -4
- examples/.DS_Store +0 -0
- examples/en_speaker_6.wav +0 -0
- examples/en_speaker_9.wav +0 -0
- examples/female.wav +0 -0
- examples/male.wav +0 -0
app.py
CHANGED
@@ -15,7 +15,7 @@ def predict(prompt, language, audio_file_pth):
|
|
15 |
|
16 |
return gr.make_waveform(
|
17 |
audio="output.wav",
|
18 |
-
), gr.Audio(
|
19 |
|
20 |
|
21 |
title = "Coqui🐸 XTTS"
|
@@ -41,6 +41,24 @@ article = """
|
|
41 |
</div>
|
42 |
"""
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
gr.Interface(
|
45 |
fn=predict,
|
46 |
inputs=[
|
@@ -68,20 +86,21 @@ gr.Interface(
|
|
68 |
"zh",
|
69 |
],
|
70 |
max_choices=1,
|
71 |
-
value="en"
|
72 |
),
|
73 |
gr.Audio(
|
74 |
label="Reference Audio",
|
75 |
info="Click on the ✎ button to upload your own target speaker audio",
|
76 |
type="filepath",
|
77 |
-
value="examples/en_speaker_6.wav"
|
78 |
),
|
79 |
],
|
80 |
outputs=[
|
81 |
gr.Video(label="Synthesised Waveform"),
|
82 |
-
gr.Audio(label="Synthesised Audio")
|
83 |
],
|
84 |
title=title,
|
85 |
description=description,
|
86 |
article=article,
|
|
|
87 |
).launch(debug=True)
|
|
|
15 |
|
16 |
return gr.make_waveform(
|
17 |
audio="output.wav",
|
18 |
+
), gr.Audio(value="output.wav")
|
19 |
|
20 |
|
21 |
title = "Coqui🐸 XTTS"
|
|
|
41 |
</div>
|
42 |
"""
|
43 |
|
44 |
+
examples = [
|
45 |
+
[
|
46 |
+
"Once when I was six years old I saw a magnificent picture.",
|
47 |
+
"en",
|
48 |
+
"examples/female.wav",
|
49 |
+
],
|
50 |
+
[
|
51 |
+
"Lorsque j'avais six ans j'ai vu, une fois, une magnifique image.",
|
52 |
+
"fr",
|
53 |
+
"examples/male.wav",
|
54 |
+
],
|
55 |
+
[
|
56 |
+
"Un tempo lontano, quando avevo sei anni, vidi un magnifico disegno.",
|
57 |
+
"it",
|
58 |
+
"examples/female.wav",
|
59 |
+
],
|
60 |
+
]
|
61 |
+
|
62 |
gr.Interface(
|
63 |
fn=predict,
|
64 |
inputs=[
|
|
|
86 |
"zh",
|
87 |
],
|
88 |
max_choices=1,
|
89 |
+
value="en",
|
90 |
),
|
91 |
gr.Audio(
|
92 |
label="Reference Audio",
|
93 |
info="Click on the ✎ button to upload your own target speaker audio",
|
94 |
type="filepath",
|
95 |
+
value="examples/en_speaker_6.wav",
|
96 |
),
|
97 |
],
|
98 |
outputs=[
|
99 |
gr.Video(label="Synthesised Waveform"),
|
100 |
+
gr.Audio(label="Synthesised Audio"),
|
101 |
],
|
102 |
title=title,
|
103 |
description=description,
|
104 |
article=article,
|
105 |
+
examples=examples,
|
106 |
).launch(debug=True)
|
examples/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
examples/en_speaker_6.wav
DELETED
Binary file (300 kB)
|
|
examples/en_speaker_9.wav
DELETED
Binary file (356 kB)
|
|
examples/female.wav
ADDED
Binary file (251 kB). View file
|
|
examples/male.wav
ADDED
Binary file (191 kB). View file
|
|