Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -407,14 +407,18 @@ if __name__ == "__main__":
|
|
407 |
text = gr.TextArea(
|
408 |
label="输入文本内容",
|
409 |
placeholder="""
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
""",
|
416 |
)
|
417 |
-
|
|
|
|
|
|
|
|
|
418 |
_ = gr.Markdown(
|
419 |
value="提示模式(Prompt mode):可选文字提示或音频提示,用于生成文字或音频指定风格的声音。\n"
|
420 |
)
|
@@ -447,7 +451,7 @@ if __name__ == "__main__":
|
|
447 |
language = gr.Dropdown(
|
448 |
choices=languages, value=languages[0], label="Language"
|
449 |
)
|
450 |
-
btn = gr.Button("
|
451 |
with gr.Column():
|
452 |
with gr.Row():
|
453 |
with gr.Column():
|
|
|
407 |
text = gr.TextArea(
|
408 |
label="输入文本内容",
|
409 |
placeholder="""
|
410 |
+
推荐不同语言分开推理,因为无法连贯且可能影响最终效果!
|
411 |
+
如果选择语言为\'mix\',必须按照格式输入,否则报错:
|
412 |
+
格式举例(zh是中文,jp是日语,en是英语;不区分大小写):
|
413 |
+
[说话人]<zh>你好 <jp>こんにちは <en>Hello
|
414 |
+
另外,所有的语言选项都可以用'|'分割长段实现分句生成。
|
415 |
""",
|
416 |
)
|
417 |
+
trans = gr.Button("中翻日", variant="primary")
|
418 |
+
slicer = gr.Button("快速切分", variant="primary")
|
419 |
+
speaker = gr.Dropdown(
|
420 |
+
choices=speakers, value=speakers[0], label="Speaker"
|
421 |
+
)
|
422 |
_ = gr.Markdown(
|
423 |
value="提示模式(Prompt mode):可选文字提示或音频提示,用于生成文字或音频指定风格的声音。\n"
|
424 |
)
|
|
|
451 |
language = gr.Dropdown(
|
452 |
choices=languages, value=languages[0], label="Language"
|
453 |
)
|
454 |
+
btn = gr.Button("生成音频!", variant="primary")
|
455 |
with gr.Column():
|
456 |
with gr.Row():
|
457 |
with gr.Column():
|