#9001 语音识别阶段出错[faster-whisper(本地)] [Errno 2] No such file or directory: 'F:/videotran/trs/tmp/51516/f337ab5aad/en.wav':Traceba

2407**200 Posted at: 21 hours ago

语音识别阶段出错[faster-whisper(本地)] [Errno 2] No such file or directory: 'F:/videotran/trs/tmp/51516/f337ab5aad/en.wav':Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 239, in faster_whisper
File "faster_whisper\transcribe.py", line 387, in transcribe
File "faster_whisper\audio.py", line 46, in decode_audio
File "av/container/core.pyx", line 482, in av.container.core.open
File "av/container/core.pyx", line 298, in av.container.core.Container.__cinit__
File "av/container/core.pyx", line 318, in av.container.core.Container.err_check
File "av/error.pyx", line 424, in av.error.err_check
av.error.FileNotFoundError: [Errno 2] No such file or directory: 'F:/videotran/trs/tmp/51516/f337ab5aad/en.wav'

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 100, in process_task

File "videotrans\task\trans_create.py", line 322, in recogn

File "videotrans\recognition\__init__.py", line 190, in run

File "videotrans\recognition\_base.py", line 94, in run

File "videotrans\recognition\_whisper.py", line 36, in _exec

File "videotrans\recognition\_whisper.py", line 109, in _faster

File "videotrans\configure\base.py", line 253, in _new_process

videotrans.configure.excepts.VideoTransError: [Errno 2] No such file or directory: 'F:/videotran/trs/tmp/51516/f337ab5aad/en.wav':Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 239, in faster_whisper
File "faster_whisper\transcribe.py", line 387, in transcribe
File "faster_whisper\audio.py", line 46, in decode_audio
File "av/container/core.pyx", line 482, in av.container.core.open
File "av/container/core.pyx", line 298, in av.container.core.Container.__cinit__
File "av/container/core.pyx", line 318, in av.container.core.Container.err_check
File "av/error.pyx", line 424, in av.error.err_check
av.error.FileNotFoundError: [Errno 2] No such file or directory: 'F:/videotran/trs/tmp/51516/f337ab5aad/en.wav'
TaskCfgVTT(uuid='f337ab5aad', name='J:/开放平台/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/I Evolved From FAT to MUSCULAR in Minecraft!_Part00.mp4', dirname='J:/开放平台/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割', noextname='I Evolved From FAT to MUSCULAR in Minecraft!_Part00', basename='I Evolved From FAT to MUSCULAR in Minecraft!_Part00.mp4', ext='mp4', target_dir='J:/开放平台/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4', cache_folder='F:/videotran/trs/tmp/51516/f337ab5aad', is_cuda=True, source_language='英语', source_language_code='en', source_sub='J:/开放平台/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/en.srt', source_wav='F:/videotran/trs/tmp/51516/f337ab5aad/en.wav', source_wav_output='J:/开放平台/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='J:/开放平台/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/zh-cn.srt', target_wav='F:/videotran/trs/tmp/51516/f337ab5aad/target.wav', target_wav_output='J:/开放平台/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/zh-cn.m4a', translate_type=4, tts_type=9, volume='+100%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=True, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='J:/开放平台/个人节目/刘永杰/游戏节目/001奇奇解说我的世界/PrestonPlayz/001/三段切割/分割的/I Evolved From FAT to MUSCULAR in Minecraft!_Part00-mp4/I Evolved From FAT to MUSCULAR in Minecraft!_Part00.mp4', novoice_mp4='F:/videotran/trs/tmp/51516/f337ab5aad/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal=None, clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=2.3)

1 Replies

#1 DeepSeek reply at 21 hours ago

这是由于预处理阶段未能成功生成语音识别所需的音频文件 en.wav(提取失败、被安全软件清理或磁盘写入失败),导致 faster-whisper 在读取该文件时报 FileNotFoundError,与模型本身、CUDA 无关。

排查与处理步骤:

  1. 简化文件路径与文件名(最可能原因)
    当前视频名含空格与感叹号(I Evolved From FAT to MUSCULAR in Minecraft!_Part00.mp4),且路径层级深、含中文。请把视频重命名为纯英文数字(如 video1.mp4),移动到浅层目录(如 D:/test/video1.mp4)后重新导入处理。
  2. 检查缓存盘与安全软件

    • 确认 F: 盘有充足剩余空间(源码部署时 tmp 位于软件目录,注意 F:/videotran/trs/tmp 是否可正常写入)。
    • 关闭杀毒/管家类软件,或将软件目录整体加入信任名单(常见误清理 tmp 内临时 wav)。
    • 手动进入 F:/videotran/trs/tmp/,清空残留文件夹后重试。
  3. 确认原视频确实含音频轨道
    用播放器播放确认有声音;若为纯画面或音轨在下载/合并中丢失,则无法提取出 en.wav。
  4. 重新执行
    勾选主界面 清理已生成 后重新开始,确保上次失败残留的中间文件不干扰。
  5. 若按上述处理后仍复现同一报错,请提供软件安装目录下 logs/ 中最新的日志文件(复制底部约 30 行),重点包含提取音频阶段的 ffmpeg 输出信息。

补充说明:本次配置中 enable_diariz=1、voice_role=clone 会增加处理负担,但不影响该报错本身;可先关闭说话人分离、仅做识别以验证是否为文件路径问题。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource