XzJosh commited on
Commit
fe07bb5
1 Parent(s): 4915278

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -488,11 +488,17 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
488
  text_language = gr.Dropdown(
489
  label="需要合成的语种", choices=["中文", "英文", "日文"], value="中文"
490
  )
 
 
 
 
 
 
491
  inference_button = gr.Button("合成语音", variant="primary")
492
  output = gr.Audio(label="输出的语音")
493
  inference_button.click(
494
  get_tts_wav,
495
- [audio_select, ref_text, prompt_language, text, text_language],
496
  [output],
497
  )
498
 
 
488
  text_language = gr.Dropdown(
489
  label="需要合成的语种", choices=["中文", "英文", "日文"], value="中文"
490
  )
491
+ how_to_cut = gr.Radio(
492
+ label=("怎么切"),
493
+ choices=[("不切"),("凑五句一切"),("凑50字一切"),("按中文句号。切"),("按英文句号.切"),],
494
+ value=("凑50字一切"),
495
+ interactive=True,
496
+ )
497
  inference_button = gr.Button("合成语音", variant="primary")
498
  output = gr.Audio(label="输出的语音")
499
  inference_button.click(
500
  get_tts_wav,
501
+ [audio_select, ref_text, prompt_language, text, text_language,how_to_cut],
502
  [output],
503
  )
504