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

117.129* Posted at: 11 hours ago

语音识别阶段出错[faster-whisper(本地内置)] Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_text
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 92, in run

File "videotrans\recognition\_whisper.py", line 38, in _exec

File "videotrans\recognition\_whisper.py", line 124, in _faster

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: tensorflow_text
cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 批量翻译模式 每批1个
原始输入文件名: E:/BaiduNetdiskDownload/The AI Engineer Course 2025 Complete AI Engineer Bootcamp/5 - Intro to AI Module Understanding Generative AI/26 - The importance of foundation models.mp4,
输出结果保存到文件夹: E:/BaiduNetdiskDownload/AI视频教程/26 - The importance of foundation models-mp4,
临时文件夹: D:/APP/tools/pyvideotrans/tmp/13092/4ec31c0163
已选 清理已存在
已选 启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量不限制
语音识别:faster-whisper(本地内置), model_name: large-v3, 发音语言: 英语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunxia(Male/CN), 配音语言:简体中文, 已选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
已选 仅输出mp4
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.26200-SP0
version:v4.06
frozen:True
language:zh
root_dir:D:/APP/tools/pyvideotrans

1 Replies

这是升级到 v4.05/4.06 后因旧版本 transformers 代码残留导致的已知兼容性问题。

解决方法:

  1. 关闭软件,进入软件安装目录(例如 D:/APP/tools/pyvideotrans/)。
  2. 打开 _internal 文件夹。
  3. 手动删除以下两个文件夹(如果存在):

    • transformers
    • transformers4576
  4. 重新下载完整版压缩包(2.6GB 的 .7z 文件,不要仅下载补丁包),解压后覆盖到原目录。
  5. 重新启动 sp.exe 执行任务。

此问题由旧版 transformers 缓存与新版本冲突导致,删除后配合完整包即可消除。

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