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

2408**bc7 Posted at: 1 hour 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\_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='054ed41ca9', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: F:/纪录片/Guns.The.Evolution.of.Firearms.2012.S01.720p.BluRay.x264-BiQ/biq-guns.the.evolution.of.firearms.e01.720p.bluray.x264/biq-guns.the.evolution.of.firearms.e01.720p.bluray.x264.mkv,
输出结果保存到文件夹: C:/Users/水兵361/Desktop/新建文件夹/biq-guns.the.evolution.of.firearms.e01.720p.bluray.x264-mkv,
临时文件夹: C:/pyvideotrans/tmp/13948/054ed41ca9
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:阿里FunASR(内置), Fun-ASR-Nano-2512, 发音语言: 英语,
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕, precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=False, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=False


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:C:/pyvideotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 FunASR 框架的模型注册表问题:软件调用 AutoModel 加载 Fun-ASR-Nano-2512 时,当前环境中没有注册该模型类,导致 AssertionError: FunASRNano is not registered。常见原因是 funasr 依赖版本与所选模型不匹配,或预打包版/源码部署环境不完整、旧缓存未清理。

处理步骤:

  1. 如果不是必须使用 Fun-ASR-Nano-2512,先切换为其他可用的识别渠道/模型,例如:

    • faster-whisper(内置) + large-v3-turbo(英文识别推荐,默认渠道)
    • 阿里FunASR(内置) + paraformer-zh(中文效果好,但不建议用于英文)
    • Qwen-ASR(内置)、openai-whisper(内置)
  2. 若必须使用 FunASRNano:

    • 预打包版(Windows 绿色版):请下载最新完整版或对应补丁包,确保 _internal、videotrans 等目录完整覆盖后重试。
    • 源码部署:需要确保 funasr 依赖版本与软件 v4.16 匹配,并清理旧的 __pycache__ 缓存后重新安装依赖。
  3. 覆盖/重装后仍报错,请提供 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