This commit is contained in:
Downupanddownup 2024-04-29 00:58:15 +08:00
parent 61db7f05dc
commit fe969ab9a2
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ def generate_audio_files_for_emotion_group(url_composer, text_list, emotion_list
f.write(audio_bytes)
has_generated_count += 1
logger.info(f"度: {has_generated_count}/{all_count}")
logger.info(f"程ID: {os.getpid()}, 进度: {has_generated_count}/{all_count}")
end_time = time.perf_counter() # 获取计时终点
elapsed_time = end_time - start_time # 计算执行耗时
# 记录日志内容

View File

@ -70,7 +70,7 @@ def remove_low_similarity_files(ref_audio_list, report_list, audio_text_similari
def delete_ref_audio_below_boundary(ref_audio_path, text_similarity_result_path, sync_inference_audio_dir,
audio_text_similarity_boundary):
ref_audio_list = common.RefAudioListManager(ref_audio_path)
ref_audio_list = common.RefAudioListManager(ref_audio_path).get_ref_audio_list()
report_list = parse_text_similarity_result_txt(text_similarity_result_path)
count = remove_low_similarity_files(ref_audio_list, report_list, audio_text_similarity_boundary)
audio_check.sync_ref_audio(ref_audio_path, sync_inference_audio_dir)