Spaces:
Sleeping
Sleeping
Stereo0001
commited on
Commit
·
2ca342a
1
Parent(s):
e640b1d
Update app.py
Browse files
app.py
CHANGED
@@ -24,11 +24,11 @@ async def text_to_speech_edge(text, language_code):
|
|
24 |
input_text = gr.Textbox(lines=5, label="输入文本")
|
25 |
output_text = gr.Textbox(label="输出文本")
|
26 |
output_audio = gr.Audio(type="filepath", label="导出文件")
|
27 |
-
|
28 |
-
language = gr.Dropdown(choices=list(language_dict.keys()), default=
|
29 |
|
30 |
interface = gr.Interface(fn=text_to_speech_edge, inputs=[input_text, language], outputs=[output_text, output_audio], title="LZZ文字转语音")
|
31 |
|
32 |
|
33 |
if __name__ == "__main__":
|
34 |
-
|
|
|
24 |
input_text = gr.Textbox(lines=5, label="输入文本")
|
25 |
output_text = gr.Textbox(label="输出文本")
|
26 |
output_audio = gr.Audio(type="filepath", label="导出文件")
|
27 |
+
|
28 |
+
language = gr.Dropdown(choices=list(language_dict.keys()), default='zh-CN-YunxiNeural', label="语言")
|
29 |
|
30 |
interface = gr.Interface(fn=text_to_speech_edge, inputs=[input_text, language], outputs=[output_text, output_audio], title="LZZ文字转语音")
|
31 |
|
32 |
|
33 |
if __name__ == "__main__":
|
34 |
+
interface.launch()
|