Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def fx3(x):
|
|
31 |
|
32 |
def fx4(x):
|
33 |
url_s="https://tts.baidu.com/text2audio?tex="+x+"&cuid=baike&lan=ZH&ie=utf-8&ctp=1&pdt=301&vol=9&rate=32&per=0"
|
34 |
-
return
|
35 |
|
36 |
with demo:
|
37 |
gr.Markdown(
|
@@ -54,7 +54,7 @@ with demo:
|
|
54 |
dq_button = gr.Button("开始读取>>")
|
55 |
with gr.TabItem("TTS"):
|
56 |
TS_input = gr.Textbox(placeholder='请输入测试字符串,如"欢迎测试字符串转语音功能模块"',label="请输入测试内容",show_label=True)
|
57 |
-
audio_output = gr.
|
58 |
tts_button = gr.Button("开始转换>>")
|
59 |
|
60 |
tj_button.click(fx1, inputs=text_input, outputs=text_output)
|
|
|
31 |
|
32 |
def fx4(x):
|
33 |
url_s="https://tts.baidu.com/text2audio?tex="+x+"&cuid=baike&lan=ZH&ie=utf-8&ctp=1&pdt=301&vol=9&rate=32&per=0"
|
34 |
+
return "点击音频文件 [voice]("+url_s+")"
|
35 |
|
36 |
with demo:
|
37 |
gr.Markdown(
|
|
|
54 |
dq_button = gr.Button("开始读取>>")
|
55 |
with gr.TabItem("TTS"):
|
56 |
TS_input = gr.Textbox(placeholder='请输入测试字符串,如"欢迎测试字符串转语音功能模块"',label="请输入测试内容",show_label=True)
|
57 |
+
audio_output = gr.Markdown(label="点击生成音频文件",show_label=True)
|
58 |
tts_button = gr.Button("开始转换>>")
|
59 |
|
60 |
tj_button.click(fx1, inputs=text_input, outputs=text_output)
|