Spaces:
Runtime error
Runtime error
Vaibhav Srivastav
commited on
Commit
·
f8a39ef
1
Parent(s):
72098e5
up
Browse files
app.py
CHANGED
@@ -68,21 +68,22 @@ with gr.Blocks() as demo_blocks:
|
|
68 |
gr.Markdown("""<h1 align="center">🐶 Bark with Vocos</h1>""")
|
69 |
gr.HTML("""<h3 style="text-align:center;">📢 Vocos-enhanced TTS 🦾! </h3>""")
|
70 |
with gr.Group():
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
74 |
speaker_embeddings,
|
75 |
value=None,
|
76 |
label="Available voice presets",
|
77 |
-
info="
|
78 |
)
|
79 |
|
80 |
with gr.Row():
|
81 |
btn = gr.Button("Synthesise speech!")
|
82 |
|
83 |
with gr.Row():
|
84 |
-
out_audio_vocos = gr.Audio(type="numpy", autoplay=False, label="Vocos enhanced
|
85 |
|
86 |
-
btn.click(generate_audio, [inp_text,
|
87 |
|
88 |
demo_blocks.queue().launch(debug=True)
|
|
|
68 |
gr.Markdown("""<h1 align="center">🐶 Bark with Vocos</h1>""")
|
69 |
gr.HTML("""<h3 style="text-align:center;">📢 Vocos-enhanced TTS 🦾! </h3>""")
|
70 |
with gr.Group():
|
71 |
+
with gr.Row():
|
72 |
+
inp_text = gr.Textbox(label="What should Bark say?", info="Enter text here")
|
73 |
+
with gr.Row():
|
74 |
+
spk = gr.Dropdown(
|
75 |
speaker_embeddings,
|
76 |
value=None,
|
77 |
label="Available voice presets",
|
78 |
+
info="Default: No speaker embeddings"
|
79 |
)
|
80 |
|
81 |
with gr.Row():
|
82 |
btn = gr.Button("Synthesise speech!")
|
83 |
|
84 |
with gr.Row():
|
85 |
+
out_audio_vocos = gr.Audio(type="numpy", autoplay=False, label="Vocos enhanced speech", show_label=True)
|
86 |
|
87 |
+
btn.click(generate_audio, [inp_text, spk], [out_audio_vocos])
|
88 |
|
89 |
demo_blocks.queue().launch(debug=True)
|