Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -487,18 +487,19 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
|
|
487 |
text = gr.Textbox(label="需要合成的文本", value="")
|
488 |
text_language = gr.Dropdown(
|
489 |
label="需要合成的语种", choices=["中文", "英文", "日文"], value="中文"
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
inference_button = gr.Button("合成语音", variant="primary")
|
498 |
-
output = gr.Audio(label="输出的语音")
|
|
|
499 |
inference_button.click(
|
500 |
get_tts_wav,
|
501 |
-
[
|
502 |
[output],
|
503 |
)
|
504 |
|
|
|
487 |
text = gr.Textbox(label="需要合成的文本", value="")
|
488 |
text_language = gr.Dropdown(
|
489 |
label="需要合成的语种", choices=["中文", "英文", "日文"], value="中文"
|
490 |
+
)
|
491 |
+
how_to_cut = gr.Radio(
|
492 |
+
label=("怎么切"),
|
493 |
+
choices=[("不切"),("凑五句一切"),("凑50字一切"),("按中文句号。切"),("按英文句号.切"),],
|
494 |
+
value=("凑50字一切"),
|
495 |
+
interactive=True,
|
496 |
+
)
|
497 |
inference_button = gr.Button("合成语音", variant="primary")
|
498 |
+
output = gr.Audio(label="输出的语音"))
|
499 |
+
|
500 |
inference_button.click(
|
501 |
get_tts_wav,
|
502 |
+
[inp_ref, prompt_text, prompt_language, text, text_language,how_to_cut],
|
503 |
[output],
|
504 |
)
|
505 |
|