Update demo.py
Browse files
demo.py
CHANGED
@@ -166,7 +166,7 @@ INTROTXT = """Update v0.01: Darya (RU) now supports style diffusion as well. """
|
|
166 |
with gr.Blocks() as audio_inf:
|
167 |
with gr.Row():
|
168 |
with gr.Column(scale=1):
|
169 |
-
language_checkbox_audio = gr.Checkbox(label="English?", value=
|
170 |
info="Tick for English synthesis, leave unchecked for Russian.")
|
171 |
inp = gr.Textbox(label="Text",
|
172 |
info="Enter the text for voice-guided synthesis.",
|
@@ -177,7 +177,7 @@ with gr.Blocks() as audio_inf:
|
|
177 |
voice = gr.Dropdown(choices=voicelist,
|
178 |
label="Default Reference Voice (make sure it matches the language)",
|
179 |
info="Select a pre-defined reference voice.",
|
180 |
-
value=voicelist[
|
181 |
interactive=True)
|
182 |
voice_2 = gr.Audio(label="Upload Your Audio Reference (Overrides Default Voice & Speaker ID)",
|
183 |
sources=["upload", "microphone"],
|
@@ -249,7 +249,7 @@ with gr.Blocks() as longform:
|
|
249 |
|
250 |
with gr.Row():
|
251 |
with gr.Column(scale=1):
|
252 |
-
language_checkbox_longform = gr.Checkbox(label="English?", value=
|
253 |
info="Tick for English synthesis, leave unchecked for Russian.")
|
254 |
inp_longform = gr.Textbox(label="Text",
|
255 |
info="Enter text; check the format from the examples.",
|
|
|
166 |
with gr.Blocks() as audio_inf:
|
167 |
with gr.Row():
|
168 |
with gr.Column(scale=1):
|
169 |
+
language_checkbox_audio = gr.Checkbox(label="English?", value=False,
|
170 |
info="Tick for English synthesis, leave unchecked for Russian.")
|
171 |
inp = gr.Textbox(label="Text",
|
172 |
info="Enter the text for voice-guided synthesis.",
|
|
|
177 |
voice = gr.Dropdown(choices=voicelist,
|
178 |
label="Default Reference Voice (make sure it matches the language)",
|
179 |
info="Select a pre-defined reference voice.",
|
180 |
+
value=voicelist[7] if voicelist else None,
|
181 |
interactive=True)
|
182 |
voice_2 = gr.Audio(label="Upload Your Audio Reference (Overrides Default Voice & Speaker ID)",
|
183 |
sources=["upload", "microphone"],
|
|
|
249 |
|
250 |
with gr.Row():
|
251 |
with gr.Column(scale=1):
|
252 |
+
language_checkbox_longform = gr.Checkbox(label="English?", value=False,
|
253 |
info="Tick for English synthesis, leave unchecked for Russian.")
|
254 |
inp_longform = gr.Textbox(label="Text",
|
255 |
info="Enter text; check the format from the examples.",
|