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

218.13**8 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='274c86fa22', proxy_str=None, cfg=[TaskCfgSTT]
原始输入文件名: D:/users/music/2music/彩云追月-苏妙玲.mp3,
输出结果保存到文件夹: G:/win-pyvideotrans-v4.16/output/recogn,
临时文件夹: G:/win-pyvideotrans-v4.16/tmp/18776/274c86fa22
未启用CUDA加速
未选 降噪
语音识别:阿里FunASR(内置), Fun-ASR-Nano-2512
发音语言:zh
未选 降噪, 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.26100-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:G:/win-pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 1 hour ago

该错误是 FunASR 模型注册失败,常见原因是模型文件不完整、未正确下载至指定目录或版本与 funasr 库不匹配。请按以下步骤排查:

  1. 删除软件目录下 models/ 中与 FunASR-Nano 相关的模型文件夹(如 models/models--iic--FunASRNano 或类似),然后重新运行任务触发自动下载,确认网络稳定(国内可尝试配置代理或使用镜像)。
  2. 若自动下载仍失败,请前往 源码部署FunASR报错 paraformer-zh is not registered 查看手动下载和放置位置说明,将模型文件完整放入对应目录。
  3. 若问题依旧,可暂时改用其他语音识别渠道(如 faster-whisper(内置) 或 Qwen-ASR(内置))完成任务。
  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