Spaces:
Paused
Paused
zxsipola123456
commited on
Commit
•
37e915a
1
Parent(s):
3a50740
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ with app:
|
|
118 |
voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='请选择一个说话人', value='alloy')
|
119 |
with gr.Row():
|
120 |
with gr.Column():
|
121 |
-
inp_text = gr.Textbox(label="
|
122 |
btn_text = gr.Button("一键开启真实拟声吧", variant="primary")
|
123 |
with gr.Column():
|
124 |
inp1 = gr.Audio(type="filepath", label="OpenAI TTS真实拟声", interactive=False)
|
@@ -130,7 +130,7 @@ with app:
|
|
130 |
btn1.click(voice_change, [inp1, inp2], out1)
|
131 |
with gr.Tab("⚡ Edge TTS"):
|
132 |
with gr.Row():
|
133 |
-
input_text = gr.Textbox(lines=5, placeholder="
|
134 |
default_language = list(language_dict.keys())[15]
|
135 |
language = gr.Dropdown(choices=list(language_dict.keys()), value=default_language, label="请选择文本对应的语言")
|
136 |
btn_edge = gr.Button("一键开启真实拟声吧", variant="primary")
|
@@ -138,7 +138,7 @@ with app:
|
|
138 |
output_audio = gr.Audio(type="filepath", label="Edge TTS真实拟声")
|
139 |
|
140 |
with gr.Row():
|
141 |
-
inp_vc = gr.Audio(type="filepath", label="请上传AI
|
142 |
btn_vc = gr.Button("一键开启AI变声吧", variant="primary")
|
143 |
out_vc = gr.Audio(type="filepath", label="AI变声后的专属音频")
|
144 |
|
@@ -146,6 +146,7 @@ with app:
|
|
146 |
btn_vc.click(voice_change, [output_audio, inp_vc], out_vc)
|
147 |
|
148 |
gr.Markdown("### <center>注意获取中转API Key [here](https://buy.sipola.cn).</center>")
|
|
|
149 |
gr.HTML('''
|
150 |
<div class="footer">
|
151 |
<center><p>Power by sipola </p></center>
|
|
|
118 |
voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='请选择一个说话人', value='alloy')
|
119 |
with gr.Row():
|
120 |
with gr.Column():
|
121 |
+
inp_text = gr.Textbox(label="请填写您想生成的文本中英文皆可", placeholder="请输入ai生成的文案,不要超过300字,最好200字左右", lines=5)
|
122 |
btn_text = gr.Button("一键开启真实拟声吧", variant="primary")
|
123 |
with gr.Column():
|
124 |
inp1 = gr.Audio(type="filepath", label="OpenAI TTS真实拟声", interactive=False)
|
|
|
130 |
btn1.click(voice_change, [inp1, inp2], out1)
|
131 |
with gr.Tab("⚡ Edge TTS"):
|
132 |
with gr.Row():
|
133 |
+
input_text = gr.Textbox(lines=5, placeholder="请输入ai生成的文案,不要超过300字,最好200字左右", label="请填写您想生成的文本中英文皆可")
|
134 |
default_language = list(language_dict.keys())[15]
|
135 |
language = gr.Dropdown(choices=list(language_dict.keys()), value=default_language, label="请选择文本对应的语言")
|
136 |
btn_edge = gr.Button("一键开启真实拟声吧", variant="primary")
|
|
|
138 |
output_audio = gr.Audio(type="filepath", label="Edge TTS真实拟声")
|
139 |
|
140 |
with gr.Row():
|
141 |
+
inp_vc = gr.Audio(type="filepath", label="请上传AI变声的参照音频决定变声后的语音音色")
|
142 |
btn_vc = gr.Button("一键开启AI变声吧", variant="primary")
|
143 |
out_vc = gr.Audio(type="filepath", label="AI变声后的专属音频")
|
144 |
|
|
|
146 |
btn_vc.click(voice_change, [output_audio, inp_vc], out_vc)
|
147 |
|
148 |
gr.Markdown("### <center>注意获取中转API Key [here](https://buy.sipola.cn).</center>")
|
149 |
+
gr.Markdown("### <center>ai文案生成可使用中转key,请访问 [here](https://ai.sipola.cn).</center>")
|
150 |
gr.HTML('''
|
151 |
<div class="footer">
|
152 |
<center><p>Power by sipola </p></center>
|