修复并集成说话者分离功能
修复: - kb-whisper-diarization/whisper_diarization.py 变量名 bug 集成: - kb-workflow/SKILL.md 步骤5 添加说话者分离选项 - 自动检测 HF_TOKEN 选择识别模式 - 子技能清单添加 kb-whisper-diarization 文档: - kb-whisper-diarization/SKILL.md 完善 HF_TOKEN 获取步骤
This commit is contained in:
@@ -320,7 +320,7 @@ def main():
|
||||
result = merge_results(whisper_txt, whisper_srt, diarization, output_dir, basename)
|
||||
|
||||
# 清理临时音频
|
||||
if audio_path != input_path and audio_path.endswith('_audio.wav'):
|
||||
if audio_path != input_file and audio_path.endswith('_audio.wav'):
|
||||
try:
|
||||
os.remove(audio_path)
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user