#2922 TaskCfg(cache_folder='D:/project/Videotrans/win-pyvideotrans-v3.95-0126/tmp/26564/3d8e3b75e7', target_dir='C:/Users/savi

212.87* Posted at: 4 hours ago 👁7

语音识别阶段出错 [faster-whisper(本地)] Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 177, 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 132776960 at position 233

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 276, in run
File "videotrans\recognition\_base.py", line 140, 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 177, 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 132776960 at position 233
TaskCfg(cache_folder='D:/project/Videotrans/win-pyvideotrans-v3.95-0126/tmp/26564/3d8e3b75e7', target_dir='C:/Users/savior/Desktop/_video_out/2.Langchain updates-mp4', remove_noise=True, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='C:/Users/savior/Desktop/_video_out/2.Langchain updates-mp4/en.srt', target_sub='C:/Users/savior/Desktop/_video_out/2.Langchain updates-mp4/zh-cn.srt', source_wav='D:/project/Videotrans/win-pyvideotrans-v3.95-0126/tmp/26564/3d8e3b75e7/remove_noise.wav', source_wav_output='C:/Users/savior/Desktop/_video_out/2.Langchain updates-mp4/en.m4a', target_wav='D:/project/Videotrans/win-pyvideotrans-v3.95-0126/tmp/26564/3d8e3b75e7/target.wav', target_wav_output='C:/Users/savior/Desktop/_video_out/2.Langchain updates-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/project/Videotrans/win-pyvideotrans-v3.95-0126/tmp/26564/3d8e3b75e7/novoice.mp4', noextname='2.Langchain updates', shibie_audio=None, targetdir_mp4='C:/Users/savior/Desktop/_video_out/2.Langchain updates-mp4/2.Langchain updates.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=2, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='aozi.wav', copysrt_rawvideo=False, clear_cache=False, translate_type=5, tts_type=4, recogn_type=0, model_name='large-v3-turbo', voice_autorate=True, video_autorate=False, cuda=True, name='C:/Users/savior/Desktop/测试/2.Langchain updates.mp4', basename='2.Langchain updates.mp4', ext='mp4', dirname='C:/Users/savior/Desktop/测试', shound_del_name=None, uuid='3d8e3b75e7', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=1, only_out_mp4=False, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.26200-SP0
version:v3.95
frozen:True
language:zh
root_dir:D:/project/Videotrans/win-pyvideotrans-v3.95-0126

1 Replies

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

解决方案:

  1. 删除损坏的模型文件:前往软件根目录下的 models 文件夹,找到并删除 models--Systran--faster-whisper-large-v3-turbo 文件夹(或类似命名的文件夹)。
  2. 重新下载模型

    • 重启 pyVideoTrans 软件,它会自动尝试重新下载模型。
    • 如果因网络问题(如 HuggingFace 无法访问)导致下载失败,请配置“网络代理”,或手动从镜像站下载模型。
  3. 手动下载模型(推荐)

    • 从 HuggingFace 镜像站(如 hf-mirror.com)下载 faster-whisper-large-v3-turbo 模型。
    • 将下载的模型文件(包含 config.json, model.bin 等)放入 models 目录,并确保文件夹命名格式为 models--Systran--faster-whisper-large-v3-turbo(与自动下载的命名一致)。
  4. 完成上述步骤后,重新尝试语音识别。

请查阅相关文档:

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

Similar issues already exist