Skip to content

Commit

Permalink
Merge pull request #813 from FunAudioLLM/dev/lyuxiang.lx
Browse files Browse the repository at this point in the history
update
  • Loading branch information
aluminumbox authored Dec 31, 2024
2 parents 737d101 + 2745d47 commit 6b21f8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, pro
if mode_checkbox_group in ['预训练音色']:
if instruct_text != '' or prompt_wav is not None or prompt_text != '':
gr.Info('您正在使用预训练音色模式,prompt文本/prompt音频/instruct文本会被忽略!')
if sft_dropdown == '':
gr.Warning('没有可用的预训练音色!')
yield (cosyvoice.sample_rate, default_data)
# zero_shot mode only use prompt_wav prompt text
if mode_checkbox_group in ['3s极速复刻']:
if prompt_text == '':
Expand Down

0 comments on commit 6b21f8e

Please sign in to comment.