#5368 cfg=TaskCfgSTT(uuid='e2d2ae0127', name='D:/oo/fenhongjun/c6eff7001c85.mp4', dirname='D:/oo/fenhongjun', noextname='c6eff

64.118* Posted at: 1 day ago

语音识别阶段出错[Whisper.cpp] 所选模型不存在,请先下载模型到 D:/whisper-cublas-12.4.0-bin-x64/models 目录下
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\speech2text.py", line 97, in recogn

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

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

File "videotrans\recognition\_cpp.py", line 33, in _exec

RuntimeError: 所选模型不存在,请先下载模型到 D:/whisper-cublas-12.4.0-bin-x64/models 目录下
cfg=TaskCfgSTT(uuid='e2d2ae0127', name='D:/oo/fenhongjun/c6eff7001c85.mp4', dirname='D:/oo/fenhongjun', noextname='c6eff7001c85', basename='c6eff7001c85.mp4', ext='mp4', target_dir='D:/Tool/win-pyvideotrans-v4.03-0622/output/recogn', cache_folder='D:/Tool/win-pyvideotrans-v4.03-0622/tmp/1916/e2d2ae0127', is_cuda=True, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='D:/Tool/win-pyvideotrans-v4.03-0622/output/recogn/c6eff7001c85.srt', target_wav=None, target_wav_output=None, detect_language='zh-cn', recogn_type=12, model_name='ggml-large-v3-turbo.bin', shibie_audio='D:/Tool/win-pyvideotrans-v4.03-0622/tmp/1916/c6eff7001c85-661020581-removed_noise.wav', remove_noise=True, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/Tool/win-pyvideotrans-v4.03-0622

1 Replies

该错误是因为 Whisper.cpp 渠道所需的模型文件 ggml-large-v3-turbo.bin 未在指定路径找到。软件根据你的配置,从 D:/whisper-cublas-12.4.0-bin-x64/models 目录寻找模型,但该目录下没有该文件。

解决方法

  1. 下载模型:从 HuggingFace国内镜像 下载 ggml-large-v3-turbo.bin 文件。
  2. 放置模型:将下载的文件放入 D:/whisper-cublas-12.4.0-bin-x64/models 目录(你的报错路径)。
  3. 或检查配置:如果你希望使用软件内置的模型目录,请进入 菜单 → 工具/选项 → 语音识别参数,确认 Whisper.cpp 的模型路径指向软件根目录下的 models/ 文件夹(默认路径)。
  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. Dondate: ko-fi.com/jianchang512

Related resource