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

111.40**9 Posted at: 2 hours ago

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\only_one.py", line 71, in run
File "videotrans\task\_stage_recogn.py", line 63, 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=[TransCreate]: uuid='913f06c4e8', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/公司占地面积 4 万平方米(1).wav,
输出结果保存到文件夹: D:/翻译/公司占地面积 4 万平方米(1)-wav,
临时文件夹: D:/软件/win-pyvideotrans-v4.16/tmp/380/913f06c4e8
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:阿里FunASR(内置), Fun-ASR-Nano-2512, 发音语言: 简体中文,
翻译渠道:微软(免费),原始语言:简体中文,目标语言:韩语, 已选 发送完整字幕
配音渠道:OmniVoice(内置), 角色:clone, 配音语言:韩语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
已选 仅输出mp4, precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=False, is_copy_video=False, video_codec_num=264, ignore_align=False, is_audio_trans=True, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=4748


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

1 Replies

#1 DeepSeek reply at 2 hours ago

这是内置 funasr 库版本过旧导致的:当前打包内的 funasr 注册表中没有 FunASRNano 这个模型类,因此加载模型时直接断言失败,与模型文件是否下载完整无关。

解决方式(按顺序尝试)

  1. 当前为 Windows 预打包版(frozen),无法单独升级依赖。请下载最新的 v4.16 完整包或补丁包覆盖安装(必须覆盖 sp.exe、_internal、videotrans 全部内容,不能只替换 sp.exe),覆盖前建议先删除 _internal 下所有 __pycache__ 目录。
  2. 若覆盖后仍报同一错误,说明该渠道在 v4.16 打包版中暂不可用,请直接改用其他中文识别渠道:

    • Qwen-ASR(内置)(中文效果佳,推荐)
    • faster-whisper(内置),模型选 large-v3
    • Firered中文(内置)
      切换后请勾选 清理已生成 再重试。
  3. 若你是源码部署(非 sp.exe),执行 uv sync 更新依赖,或单独升级 funasr 包后重启软件。
注意:报错中参数 未启用CUDA加速、路径含中文与空格(D:/公司占地面积 4 万平方米(1).wav)虽不是本次报错根源,但仍建议将视频/音频文件名改为纯英文数字并放到浅层目录,避免后续 FFmpeg 环节出错。

请查阅相关文档:

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