#5884 语音识别阶段出错[faster-whisper(本地内置)] Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: t

192.236* Posted at: 1 hour ago

语音识别阶段出错[faster-whisper(本地内置)] Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tf
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\_stage_recogn.py", line 62, in recogn

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

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

File "videotrans\recognition\_whisper.py", line 52, in _download

File "videotrans\recognition\_base.py", line 182, in _vad_split

File "videotrans\configure\base.py", line 272, in _new_process

videotrans.configure.excepts.VideoTransError: Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tf
cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: K:/movie/Xvideos/3D/3d monster helena the alien carrier 26regionsfm.mp4,
输出结果保存到文件夹: K:/movie/Xvideos/3D/_video_out/helena-mp4,
临时文件夹: D:/Program files/sp/tmp/20632/e7ac6b8d37
未选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:兼容AI/本地模型,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.06
frozen:True
language:zh
root_dir:D:/Program files/sp

1 Replies

这是 VAD(语音活动检测)模块的后端配置错误导致的。你有两个选项:

方案一(推荐):修改 VAD 后端(无需重装软件)

  1. 打开软件主界面,点击顶部菜单 工具/选项高级选项
  2. 在左侧找到 语音识别参数 区域。
  3. 找到 选择VAD 下拉框,将其切换为 webrtcvadsilero(不要选 tf 或 auto)。
  4. 保存设置后重新执行任务。

方案二:强制重置所有配置(如果方案一无效)

  1. 关闭软件。
  2. 进入软件安装目录下的 videotrans/ 文件夹,找到 cfg.json 文件并删除它。
  3. 重新启动软件,此时所有高级选项将恢复为出厂默认值。再次尝试执行。

原因:你的高级选项中不小心设置了使用 TensorFlow 作为 VAD 后端(tf),但 Windows 打包版并未内置 TensorFlow 库,因此 VAD 分割时找不到对应的后端映射而报错。

相关文档

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 via ko-fi.com

Dondate via PayPal

Related resource