#5862 语音识别阶段出错[阿里FunASR(本地内置)] Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorf

123.194* Posted at: 1 hour ago

语音识别阶段出错[阿里FunASR(本地内置)] 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\speech2text.py", line 97, in recogn

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

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

File "videotrans\recognition\_funasr.py", line 45, in _exec

File "videotrans\recognition\_base.py", line 201, in cut_audio

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: tensorflow_text
cfg=TaskCfgSTT(uuid='92d2ebf897', name='C:/Users/user/Videos/曾仕强:99%火葬的人没有下一世?99%的人都不知道这个秘密!.mp4', dirname='C:/Users/user/Videos', noextname='曾仕强:99%火葬的人没有下一世?99%的人都不知道这个秘密!', basename='曾仕强:99%火葬的人没有下一世?99%的人都不知道这个秘密!.mp4', ext='mp4', target_dir='E:/pyvideotrans-v3.98-317/output/recogn', cache_folder='E:/pyvideotrans-v3.98-317/tmp/9480/92d2ebf897', is_cuda=False, 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='E:/pyvideotrans-v3.98-317/output/recogn/曾仕强:99%火葬的人没有下一世?99%的人都不知道这个秘密!.srt', target_wav=None, target_wav_output=None, detect_language='zh-tw', recogn_type=3, model_name='Fun-ASR-Nano-2512', shibie_audio='E:/pyvideotrans-v3.98-317/tmp/9480/92d2ebf897/曾仕强:99%火葬的人没有下一世?99%的人都不知道这个秘密!-1784171128.7383523.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.26200-SP0
version:v4.06
frozen:True
language:zh
root_dir:E:/pyvideotrans-v3.98-317

1 Replies

这个错误是由 缺少 FunASR 所需的 TensorFlow 文本处理包(tensorflow-text) 导致的。可能是因为解压安装时该依赖被误删或杀毒软件拦截,也可能是补丁包覆盖不完整。

解决方案(按顺序尝试):

  1. 重新下载完整版压缩包:从官网下载 2.6GB 的完整版(非补丁包),解压到纯英文路径(如 D:\pyVideoTrans),然后直接双击 sp.exe 重试。
  2. 切换语音识别渠道:暂时改用更稳定的 faster-whisper(本地内置)Qwen-ASR(本地内置),能立即恢复使用。
  3. 源码部署后手动安装依赖(仅高级用户):如果仍坚持使用 FunASR,可按照源码部署教程部署后,执行 uv add tensorflow-text 手动安装缺失包。

另外,您的视频文件名含有中文和特殊符号(),虽然并非直接元凶,但建议全部改为纯英文/数字命名(如 zengshi.mp4),以避免路径解析意外。

请查阅相关文档:

如果以上仍无法解决,请提供 logs/ 目录下最新日志文件中的连续 20 行信息,以便进一步排查。

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