#2919 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.95-0126/tmp/9696/1c18b886a6', target_dir='E:/迅雷下载/NMSL-030/_video_out/hhd80

140.235* Posted at: 15 hours ago 👁11

语音识别阶段出错 [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:/win-pyvideotrans-v3.95-0126/tmp/9696/1c18b886a6', target_dir='E:/迅雷下载/NMSL-030/_video_out/hhd800.com@NMSL-030-mp4', remove_noise=False, is_separate=False, detect_language='ja', subtitle_language=None, source_language='日语', target_language='简体中文', source_language_code='ja', target_language_code='zh-cn', source_sub='E:/迅雷下载/NMSL-030/_video_out/hhd800.com@NMSL-030-mp4/ja.srt', target_sub='E:/迅雷下载/NMSL-030/_video_out/hhd800.com@NMSL-030-mp4/zh-cn.srt', source_wav='D:/win-pyvideotrans-v3.95-0126/tmp/9696/1c18b886a6/ja.wav', source_wav_output='E:/迅雷下载/NMSL-030/_video_out/hhd800.com@NMSL-030-mp4/ja.m4a', target_wav='D:/win-pyvideotrans-v3.95-0126/tmp/9696/1c18b886a6/target.wav', target_wav_output='E:/迅雷下载/NMSL-030/_video_out/hhd800.com@NMSL-030-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/win-pyvideotrans-v3.95-0126/tmp/9696/1c18b886a6/novoice.mp4', noextname='hhd800.com@NMSL-030', shibie_audio=None, targetdir_mp4='E:/迅雷下载/NMSL-030/_video_out/hhd800.com@NMSL-030-mp4/[email protected]4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=True, clear_cache=False, translate_type=1, tts_type=0, recogn_type=0, model_name='large-v3-turbo', voice_autorate=False, video_autorate=False, cuda=False, name='E:/迅雷下载/NMSL-030/[email protected]4', basename='[email protected]4', ext='mp4', dirname='E:/迅雷下载/NMSL-030', shound_del_name=None, uuid='1c18b886a6', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=True)


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

1 Replies

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

解决方案:

  1. 手动下载模型:由于网络问题,从 HuggingFace 自动下载可能失败。你需要手动下载对应的模型文件。
  2. 放置到正确目录:将下载的模型文件放入软件安装目录下的 models/ 文件夹中。
  3. 确保文件夹命名正确models/ 内的文件夹命名必须严格遵循规则,例如 models--Systran--faster-whisper-large-v3-turbo(根据你使用的 large-v3-turbo 模型)。

具体步骤:

  1. 访问 HuggingFace 模型页面(例如:https://huggingface.co/Systran/faster-whisper-large-v3-turbo)。
  2. 下载整个仓库(使用 git clone 或页面上的“Download repository”按钮)。如果网络不通,可使用国内镜像站或代理。
  3. 将下载的文件夹重命名为 models--Systran--faster-whisper-large-v3-turbo
  4. 将此文件夹移动到你的 pyVideoTrans 安装目录下的 models/ 文件夹内(例如 D:\win-pyvideotrans-v3.95-0126\models\)。
  5. 重启 pyVideoTrans 软件,再次尝试语音识别。

请查阅相关文档:

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