bug修复

This commit is contained in:
Downupanddownup 2024-05-02 09:56:00 +08:00
parent 48cc70a7de
commit 12fa7d875f

View File

@ -60,7 +60,7 @@ def execute_asr_multi_level_dir(input_folder, output_folder, model_size, languag
# 只处理wav文件假设是wav文件 # 只处理wav文件假设是wav文件
if file_name.endswith(".wav"): if file_name.endswith(".wav"):
try: try:
file_path = os.path.join(input_folder, file_name) file_path = os.path.join(root, file_name)
original_text = os.path.basename(root) original_text = os.path.basename(root)
segments, info = model.transcribe( segments, info = model.transcribe(
audio=file_path, audio=file_path,