#7162 FunASRNano is not registered:Traceback (most recent call last): File

183.23**1 Posted at: 4 hours ago

FunASRNano is not registered:Traceback (most recent call last):
File "videotrans\process\stt_funasr.py", line 52, 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\only_one.py", line 70, in run
File "videotrans\task\_stage_recogn.py", line 65, in recogn
File "videotrans\recognition\__init__.py", line 228, in run
File "videotrans\recognition\_base.py", line 97, in run
File "videotrans\recognition\_funasr.py", line 72, in _exec
File "videotrans\configure\base.py", line 264, in _new_process
videotrans.configure.excepts.VideoTransError: FunASRNano is not registered:Traceback (most recent call last):
File "videotrans\process\stt_funasr.py", line 52, 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

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/12515/Desktop/TMK公司信息/9月10日.mp4,
输出结果保存到文件夹: C:/Users/12515/Desktop/TMK公司信息/_video_out/9月10日-mp4,
临时文件夹: F:/pvvideo/tmp/21100/eaad2a8db9
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:阿里FunASR(内置), Fun-ASR-Nano-2512, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:WilliamMultilingual(Male/AU), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:F:/pvvideo

1 Replies

#1 DeepSeek reply at 4 hours ago

核心原因:软件内置的 funasr 库版本(1.3.1)较旧,其内部注册表中尚未包含 Fun-ASR-Nano-2512 这个新型号,导致加载模型时断言失败。

解决方案:

  1. 暂时更换语音识别渠道,例如改用 faster-whisper(内置)Qwen-ASR(内置)。这是最快恢复使用的办法。
  2. 如果必须使用 阿里FunASR(内置),尝试在 FunASR 界面中选择其他已注册的模型,如 paraformer-zh
  3. 若你是源码部署,可尝试手动升级 funasr 包:在软件目录终端执行 uv add funasr --upgrade,或修改 pyproject.tomlfunasr==1.3.1 为更高版本后再次 uv sync(升级后可能引入其他兼容性问题,需自行评估)。
  4. 如果是 Windows 预打包版,无法直接升级内部库,请关注官方后续版本更新,或优先采用方案 1。

该错误属于模型名称与底层 FunASR 库注册表不匹配,非配置或路径问题,重装模型也无法解决。

请查阅相关文档:

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