|
|
@@ -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 == '':
|