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

240e**3ffa 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\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/42640/f9bd0999ed
未启用CUDA加速
未选 降噪
语音识别:阿里FunASR(内置), Fun-ASR-Nano-2512
发音语言:自动检测
未选 降噪, 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 1 hour ago

该错误表明 FunASR 模型名称 FunASRNano 未在当前版本中注册,通常是所选模型名称与当前 FunASR 组件版本不匹配,或模型文件未正确下载/损坏。

解决方案:

  1. 在语音识别渠道中改用其他已内置的 FunASR 模型,例如 paraformer-zh(中文效果佳)或 funasr-mlt(多语言),避免使用 Fun-ASR-Nano-2512。
  2. 检查 软件目录/models/ 下与 FunASR 相关的模型文件夹是否完整,若不完整或不确定,删除后重新尝试,软件会自动重新下载。
  3. 确认软件版本为最新 v4.16,若是源码部署,请执行 uv sync 更新依赖;Windows 打包版可重新下载完整包或补丁包覆盖。
  4. 若仍失败,请提供 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