#3058 TaskCfg(cache_folder='D:/8_Tools/videotrans/tmp/26388/d8fb281c04', target_dir='E:/yyy/videobuffer/_video_out/_video_out/

142.249* Posted at: 19 hours ago 👁15

语音识别阶段出错 [faster-whisper(本地)] Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 179, in faster_whisper
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: File model.bin is incomplete: failed to read a buffer of size 9830400 at position 1522218651

Traceback (most recent call last):
File "videotrans\task\job.py", line 106, in run
File "videotrans\task\trans_create.py", line 358, in recogn
File "videotrans\recognition\__init__.py", line 284, in run
File "videotrans\recognition\_base.py", line 141, in run
File "videotrans\recognition\_overall.py", line 63, in _exec
File "videotrans\recognition\_overall.py", line 142, in _faster
File "videotrans\configure\_base.py", line 276, in _new_process
RuntimeError: Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 179, in faster_whisper
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: File model.bin is incomplete: failed to read a buffer of size 9830400 at position 1522218651
TaskCfg(cache_folder='D:/8_Tools/videotrans/tmp/26388/d8fb281c04', target_dir='E:/yyy/videobuffer/_video_out/_video_out/kkk-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='E:/yyy/videobuffer/_video_out/_video_out/kkk-mp4/en.srt', target_sub='E:/yyy/videobuffer/_video_out/_video_out/kkk-mp4/zh-cn.srt', source_wav='D:/8_Tools/videotrans/tmp/26388/d8fb281c04/en.wav', source_wav_output='E:/yyy/videobuffer/_video_out/_video_out/kkk-mp4/en.m4a', target_wav='D:/8_Tools/videotrans/tmp/26388/d8fb281c04/target.wav', target_wav_output='E:/yyy/videobuffer/_video_out/_video_out/kkk-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/8_Tools/videotrans/tmp/26388/d8fb281c04/novoice.mp4', noextname='kkk', shibie_audio=None, targetdir_mp4='E:/yyy/videobuffer/_video_out/_video_out/kkk-mp4/kkk.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Yunyang(Male/CN)', copysrt_rawvideo=False, clear_cache=False, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3-turbo', voice_autorate=True, video_autorate=False, cuda=False, name='E:/yyy/videobuffer/_video_out/kkk.mp4', basename='kkk.mp4', ext='mp4', dirname='E:/yyy/videobuffer/_video_out', shound_del_name=None, uuid='d8fb281c04', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.96
frozen:True
language:zh
root_dir:D:/8_Tools/videotrans

1 Replies

这是由于 faster-whisper 模型文件 model.bin 下载不完整或已损坏导致的。

解决方案

  1. 删除损坏的模型文件:前往软件安装目录下的 models/ 文件夹,找到与 large-v3-turbo 模型对应的文件夹(通常类似 models--Systran--faster-whisper-large-v3-turbo),将其整个删除。
  2. 重新下载模型

    • 方法一(自动):确保网络通畅,重启软件,软件会自动重新下载模型。如果网络访问 HuggingFace 困难,请在软件“设置”中配置“网络代理”。
    • 方法二(手动):从 HuggingFace 镜像站(如 hf-mirror.com)手动下载 model.bin 等模型文件,并严格按照原文件夹结构放入 models/ 目录。
  3. 验证路径:确认软件安装路径(D:/8_Tools/videotrans)不包含中文字符和空格,符合规范。

请查阅相关文档:

Post Your Reply
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.

Related resource