fcyai commited on
Commit
691c78f
·
1 Parent(s): 0b2e3c9
Files changed (1) hide show
  1. webui_mix.py +5 -3
webui_mix.py CHANGED
@@ -868,9 +868,11 @@ with gr.Blocks() as demo:
868
  for batch_lines in lines:#batch(lines, batch_size):
869
  texts = [normalize_zh(line["txt"]) for line in [batch_lines]]
870
  print(f"seed={seed} t={texts} c={character} s={speed} r={refine_text_prompt}")
871
- wavs = generate_audio_for_seed(chat, int(seed), texts, DEFAULT_BATCH_SIZE, speed,
872
- refine_text_prompt, None, DEFAULT_TEMPERATURE, DEFAULT_TOP_P,
873
- DEFAULT_TOP_K, skip_save=True) # 批量处理文本
 
 
874
  batch_results[character].extend(wavs)
875
  print('4')
876
  # 转换回原排序
 
868
  for batch_lines in lines:#batch(lines, batch_size):
869
  texts = [normalize_zh(line["txt"]) for line in [batch_lines]]
870
  print(f"seed={seed} t={texts} c={character} s={speed} r={refine_text_prompt}")
871
+ # wavs = generate_audio_for_seed(chat, int(seed), texts, DEFAULT_BATCH_SIZE, speed,
872
+ # refine_text_prompt, None, DEFAULT_TEMPERATURE, DEFAULT_TOP_P,
873
+ # DEFAULT_TOP_K, skip_save=True) # 批量处理文本
874
+ wavs = generate_audio_for_seed(chat, seed, texts, 1, 5, "[oral_2][laugh_0][break_4]", None, 0.3, 0.7, 20)
875
+
876
  batch_results[character].extend(wavs)
877
  print('4')
878
  # 转换回原排序