Spaces:
Running
Running
kevinwang676
commited on
Commit
•
4c9ef1f
1
Parent(s):
06ac35c
Update app.py
Browse files
app.py
CHANGED
@@ -250,47 +250,32 @@ def get_tts_wav(ref_wav_path, prompt_text, prompt_language, text, text_language)
|
|
250 |
)
|
251 |
|
252 |
|
253 |
-
initial_md = """
|
254 |
-
# GPT-SoVITS Zero-shot TTS Demo
|
255 |
-
|
256 |
-
https://github.com/RVC-Boss/GPT-SoVITS
|
257 |
-
|
258 |
-
*I'm not the author of this model, and I just borrowed it to make a demo.*
|
259 |
-
|
260 |
-
- *Input text is limited to 100 characters.*
|
261 |
-
- *Input audio is limited to 60 seconds.*
|
262 |
-
|
263 |
-
**License**
|
264 |
-
|
265 |
-
https://github.com/RVC-Boss/GPT-SoVITS/blob/main/LICENSE
|
266 |
-
|
267 |
-
This software is open source under the MIT License, the author does not have any control over the software, and the user is solely responsible for the use of the software and for the distribution of the sound derived from the software.
|
268 |
-
If you do not agree with these terms and conditions, you may not use or reference any of the code or files in the package.
|
269 |
-
"""
|
270 |
-
|
271 |
with gr.Blocks(title="GPT-SoVITS Zero-shot TTS Demo") as app:
|
272 |
-
gr.Markdown(
|
273 |
-
gr.Markdown("##
|
|
|
|
|
|
|
274 |
with gr.Row():
|
275 |
-
inp_ref = gr.Audio(label="
|
276 |
-
prompt_text = gr.Textbox(label="
|
277 |
prompt_language = gr.Dropdown(
|
278 |
-
label="
|
279 |
choices=["Chinese", "English", "Japanese"],
|
280 |
-
value="
|
281 |
)
|
282 |
-
gr.Markdown("##
|
283 |
with gr.Row():
|
284 |
-
text = gr.Textbox(label="
|
285 |
text_language = gr.Dropdown(
|
286 |
-
label="
|
287 |
choices=["Chinese", "English", "Japanese"],
|
288 |
-
value="
|
289 |
)
|
290 |
-
inference_button = gr.Button("
|
291 |
with gr.Column():
|
292 |
-
info = gr.Textbox(label="Info")
|
293 |
-
output = gr.Audio(label="
|
294 |
inference_button.click(
|
295 |
get_tts_wav,
|
296 |
[inp_ref, prompt_text, prompt_language, text, text_language],
|
|
|
250 |
)
|
251 |
|
252 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
with gr.Blocks(title="GPT-SoVITS Zero-shot TTS Demo") as app:
|
254 |
+
gr.Markdown("# <center>🥳💕🎶 GPT-SoVITS 1分钟完美声音克隆,最强开源模型</center>")
|
255 |
+
gr.Markdown("## <center>🌟 只需1分钟语音,完美复刻任何角色的语音、语调、语气!声音克隆新纪元!Powered by [GPT-SoVITS](https://github.com/RVC-Boss/GPT-SoVITS)</center>")
|
256 |
+
gr.Markdown("### <center>🌊 更多精彩应用,敬请关注[滔滔AI](http://www.talktalkai.com);滔滔AI,为爱滔滔!💕</center>")
|
257 |
+
|
258 |
+
gr.Markdown("## 请上传参考音频")
|
259 |
with gr.Row():
|
260 |
+
inp_ref = gr.Audio(label="请上传数据集中的参考音频", type="filepath", value="linghua_90.wav")
|
261 |
+
prompt_text = gr.Textbox(label="参考音频对应的文字内容", value="藏明刀的刀工,也被算作是本領通神的神士相關人員,歸屬統籌文化、藝術、祭祀的射鳳形意派管理。")
|
262 |
prompt_language = gr.Dropdown(
|
263 |
+
label="参考音频的语言",
|
264 |
choices=["Chinese", "English", "Japanese"],
|
265 |
+
value="Chinese",
|
266 |
)
|
267 |
+
gr.Markdown("## 开始真实拟声之旅吧!")
|
268 |
with gr.Row():
|
269 |
+
text = gr.Textbox(label="需要合成的内容", lines=5)
|
270 |
text_language = gr.Dropdown(
|
271 |
+
label="合成内容的语言",
|
272 |
choices=["Chinese", "English", "Japanese"],
|
273 |
+
value="Chinese",
|
274 |
)
|
275 |
+
inference_button = gr.Button("开始真实拟声吧!", variant="primary")
|
276 |
with gr.Column():
|
277 |
+
info = gr.Textbox(label="Info", visible=False)
|
278 |
+
output = gr.Audio(label="为您合成的专属音频")
|
279 |
inference_button.click(
|
280 |
get_tts_wav,
|
281 |
[inp_ref, prompt_text, prompt_language, text, text_language],
|