#8267 语音识别阶段出错[阿里FunASR(内置)] FunASRNano is not registered:Traceback (most recent call last): File

2a09**6f Posted at: 2 hours ago

语音识别阶段出错[阿里FunASR(内置)] FunASRNano is not registered:Traceback (most recent call last):
File "videotrans\process\stt_funasr.py", line 51, in funasr_mlt
File "funasr\auto\auto_model.py", line 135, in init

model, kwargs = self.build_model(**kwargs)

File "funasr\auto\auto_model.py", line 281, in build_model

assert model_class is not None, f'{kwargs["model"]} is not registered'

AssertionError: FunASRNano is not registered

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 101, in process_task

File "videotrans\task\speech2text.py", line 97, in recogn

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

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

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

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

videotrans.configure.excepts.VideoTransError: FunASRNano is not registered:Traceback (most recent call last):
File "videotrans\process\stt_funasr.py", line 51, in funasr_mlt
File "funasr\auto\auto_model.py", line 135, in init

model, kwargs = self.build_model(**kwargs)

File "funasr\auto\auto_model.py", line 281, in build_model

assert model_class is not None, f'{kwargs["model"]} is not registered'

AssertionError: FunASRNano is not registered
trk=[SpeechToText]: uuid='f9bd0999ed', proxy_str=None, cfg=[TaskCfgSTT]
原始输入文件名: F:/Downloads/DCL/Lazy Son Needs Sex To Get A Job.mp4,
输出结果保存到文件夹: D:/win-pyvideotrans-v4.16-1/output/recogn,
临时文件夹: D:/win-pyvideotrans-v4.16-1/tmp/19012/f9bd0999ed
未启用CUDA加速
未选 降噪
语音识别:阿里FunASR(内置), Fun-ASR-MLT-Nano-2512
发音语言:en
未选 降噪, precent=1, hasend=False, should_recogn=True, should_trans=False, should_dubbing=False, should_hebing=False, out_format='srt', copysrt_rawvideo=False, spk_insert=True


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.16-1

1 Replies

#1 DeepSeek reply at 2 hours ago

这是内置 funasr 库版本过旧、未注册 FunASRNano 模型类导致的,与视频本身无关。由于你使用的是预打包版(frozen:True,v4.16),出现该错误通常是补丁包没有完整覆盖,或打包时对应的 funasr 版本不匹配。

处理方式:

  1. 临时绕过:将语音识别渠道切换为 faster-whisper(内置),模型选择 large-v3-turbo,识别英文效果良好,可立即正常使用。
  2. 修复 FunASR 渠道(预打包版):

    • 重新下载当前 v4.16 的最新补丁包,将 sp.exe、_internal、videotrans 等所有文件和文件夹完整覆盖到 D:/win-pyvideotrans-v4.16-1 目录,不要只替换 sp.exe。
    • 覆盖前,在 _internal 文件夹内搜索 __pycache__,删除所有搜索结果,再覆盖。
  3. 修复 FunASR 渠道(源码部署):进入代码目录执行:

    uv remove funasr
    uv add funasr

    或直接 uv sync,确保 funasr 为最新版本后重启软件。

  4. 若仍报同类 xxx is not registered,说明该模型与当前 funasr 版本仍不兼容,请先改用其他识别渠道,并附带日志底部最新报错信息反馈。

如果排查后依然无法解决,请提供 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