#8598 Applying the VAD filter requires the onnxruntime package:Traceback (most recent call last): File

2408**8831 Posted at: 1 hour ago

Applying the VAD filter requires the onnxruntime package:Traceback (most recent call last):
File "faster_whisper\vad.py", line 298, in init
File "pyimod02_importers.py", line 457, in exec_module
File "onnxruntime\__init__.py", line 74, in

__version__ = version

File "onnxruntime\__init__.py", line 24, in

from onnxruntime.capi._pybind_state import ExecutionOrder  # noqa: F401

File "pyimod02_importers.py", line 457, in exec_module
File "onnxruntime\capi\_pybind_state.py", line 32, in

from .onnxruntime_pybind11_state import *  # noqa

ModuleNotFoundError: No module named 'onnxruntime.capi.onnxruntime_pybind11_state'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 121, in faster_whisper
File "faster_whisper\transcribe.py", line 890, in transcribe
File "faster_whisper\vad.py", line 84, in get_speech_timestamps
File "faster_whisper\vad
......
st recent call last):
File "faster_whisper\vad.py", line 298, in init
File "pyimod02_importers.py", line 457, in exec_module
File "onnxruntime\__init__.py", line 74, in

__version__ = version

File "onnxruntime\__init__.py", line 24, in

from onnxruntime.capi._pybind_state import ExecutionOrder  # noqa: F401

File "pyimod02_importers.py", line 457, in exec_module
File "onnxruntime\capi\_pybind_state.py", line 32, in

from .onnxruntime_pybind11_state import *  # noqa

ModuleNotFoundError: No module named 'onnxruntime.capi.onnxruntime_pybind11_state'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 121, in faster_whisper
File "faster_whisper\transcribe.py", line 890, in transcribe
File "faster_whisper\vad.py", line 84, in get_speech_timestamps
File "faster_whisper\vad.py", line 292, in get_vad_model
File "faster_whisper\vad.py", line 300, in init
RuntimeError: Applying the VAD filter requires the onnxruntime package

trk=[TransCreate]: uuid='c407a3765a', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/84988/Desktop/视频-2.mp4,
输出结果保存到文件夹: C:/Users/84988/Desktop/视频翻译工具视频/edgetts-noproxy.txt/视频-2-mp4,
临时文件夹: D:/视频英文翻译工具/新/4.16/tmp/57000/c407a3765a
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), base, 发音语言: 简体中文,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:俄语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Svetlana(Female/RU), 配音语言:俄语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕 , precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=20000


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/视频英文翻译工具/新/4.16

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 onnxruntime 的 C 扩展文件(onnxruntime_pybind11_state.pyd)缺失或被拦截删除导致的,说明软件目录中的 _internal 文件不完整。常见原因是:只覆盖了 sp.exe 而没有整体覆盖 _internal 文件夹,或杀毒软件把该 .pyd 当作风险文件隔离删除了。faster-whisper 的 VAD 强制依赖该模块,缺失后识别阶段必然中断。

按以下顺序处理:

  1. 关闭杀毒/安全软件(360、火绒、腾讯管家、Windows Defender 实时防护),并将软件根目录整体加入信任白名单。
  2. 重新完整覆盖补丁包:补丁包不只是 sp.exe,必须把其中的 _internal 文件夹、videotrans 文件夹一并覆盖到 D:/视频英文翻译工具/新/4.16。若仍报错,直接下载 2.7GB 完整包解压替换(260MB 补丁包不含 Python 运行时与完整依赖)。
  3. 清理缓存残留:在 _internal 文件夹内搜索 __pycache__,将其搜索到的所有文件与文件夹全部删除,再覆盖补丁包。
  4. 尚需修正的路径问题(重要):当前软件安装在 D:/视频英文翻译工具/新/4.16,路径含中文与空格,这与本错误无直接关系,但会引发 ffmpeg 相关的其他报错。请移动到浅层纯英文目录,例如 D:/pyVideoTrans。
  5. 附带提醒:日志中输出目录为 C:/Users/84988/Desktop/视频翻译工具视频/edgetts-noproxy.txt/视频-2-mp4,edgetts-noproxy.txt 应为空文件放入软件根目录,而非在桌面建同名文件夹作为输出目录,请检查是否误建。

若按 1–4 步操作后仍报同一错误,请提供覆盖补丁包后 logs/ 目录下最新日志的末尾 30 行。

请查阅相关文档:

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