Spaces:
Running
Running
mrfakename
commited on
Commit
•
482e6b0
1
Parent(s):
3c748fe
Sync from GitHub repo
Browse filesThis Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there
app.py
CHANGED
@@ -201,7 +201,7 @@ def parse_speechtypes_text(gen_text):
|
|
201 |
with gr.Blocks() as app_multistyle:
|
202 |
# New section for emotional generation
|
203 |
gr.Markdown(
|
204 |
-
|
205 |
# Multiple Speech-Type Generation
|
206 |
|
207 |
This section allows you to generate multiple speech types or multiple people's voices. Enter your text in the format shown below, and the system will generate speech using the appropriate type. If unspecified, the model will use the regular speech type. The current speech type will be used until the next speech type is specified.
|
@@ -254,7 +254,6 @@ with gr.Blocks() as app_multistyle:
|
|
254 |
with gr.Column():
|
255 |
name_input = gr.Textbox(label="Speech Type Name")
|
256 |
delete_btn = gr.Button("Delete", variant="secondary")
|
257 |
-
|
258 |
audio_input = gr.Audio(label="Reference Audio", type="filepath")
|
259 |
ref_text_input = gr.Textbox(label="Reference Text", lines=2)
|
260 |
speech_type_rows.append(row)
|
@@ -263,7 +262,6 @@ with gr.Blocks() as app_multistyle:
|
|
263 |
speech_type_ref_texts.append(ref_text_input)
|
264 |
speech_type_delete_btns.append(delete_btn)
|
265 |
|
266 |
-
|
267 |
# Button to add speech type
|
268 |
add_speech_type_btn = gr.Button("Add Speech Type")
|
269 |
|
|
|
201 |
with gr.Blocks() as app_multistyle:
|
202 |
# New section for emotional generation
|
203 |
gr.Markdown(
|
204 |
+
"""
|
205 |
# Multiple Speech-Type Generation
|
206 |
|
207 |
This section allows you to generate multiple speech types or multiple people's voices. Enter your text in the format shown below, and the system will generate speech using the appropriate type. If unspecified, the model will use the regular speech type. The current speech type will be used until the next speech type is specified.
|
|
|
254 |
with gr.Column():
|
255 |
name_input = gr.Textbox(label="Speech Type Name")
|
256 |
delete_btn = gr.Button("Delete", variant="secondary")
|
|
|
257 |
audio_input = gr.Audio(label="Reference Audio", type="filepath")
|
258 |
ref_text_input = gr.Textbox(label="Reference Text", lines=2)
|
259 |
speech_type_rows.append(row)
|
|
|
262 |
speech_type_ref_texts.append(ref_text_input)
|
263 |
speech_type_delete_btns.append(delete_btn)
|
264 |
|
|
|
265 |
# Button to add speech type
|
266 |
add_speech_type_btn = gr.Button("Add Speech Type")
|
267 |
|