mirror of
https://github.com/SWivid/F5-TTS.git
synced 2025-12-31 07:02:38 -08:00
fix address #178
This commit is contained in:
@@ -149,10 +149,10 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, exp_name, remove_silence,
|
||||
generated_waves = []
|
||||
spectrograms = []
|
||||
|
||||
if len(ref_text[-1].encode('utf-8')) == 1:
|
||||
ref_text = ref_text + " "
|
||||
for i, gen_text in enumerate(progress.tqdm(gen_text_batches)):
|
||||
# Prepare the text
|
||||
if len(ref_text[-1].encode('utf-8')) == 1:
|
||||
ref_text = ref_text + " "
|
||||
text_list = [ref_text + gen_text]
|
||||
final_text_list = convert_char_to_pinyin(text_list)
|
||||
|
||||
|
||||
@@ -241,10 +241,10 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, model,ckpt_file,file_voca
|
||||
generated_waves = []
|
||||
spectrograms = []
|
||||
|
||||
if len(ref_text[-1].encode('utf-8')) == 1:
|
||||
ref_text = ref_text + " "
|
||||
for i, gen_text in enumerate(tqdm.tqdm(gen_text_batches)):
|
||||
# Prepare the text
|
||||
if len(ref_text[-1].encode('utf-8')) == 1:
|
||||
ref_text = ref_text + " "
|
||||
text_list = [ref_text + gen_text]
|
||||
final_text_list = convert_char_to_pinyin(text_list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user