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

2408**bc7 Posted at: 2 hours 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/6396/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 2 hours ago

语音识别阶段出错[阿里FunASR(内置)] 的 FunASRNano is not registered,核心原因是 FunASR 模型未能正确加载:通常是由于模型文件下载不完整、损坏,或软件内置 funasr 库与所选模型名称不匹配导致该模型未被注册。

解决方案:

  1. 删除软件目录(C:/pyvideotrans)下 models/ 中 FunASR 相关模型缓存文件夹(例如与 FunASR-Nano-2512 对应的目录),然后重新启动软件,让模型重新自动下载。
  2. 如果自动下载失败,请参考官方文档手动下载对应模型并放入正确位置(下载时必须注意文件名和目录名,不能有重命名或缺失)。
  3. 若仍无法解决,建议暂时更换语音识别渠道为 faster-whisper(内置)(默认推荐),该渠道稳定且支持多种语言,可避免 FunASR 的兼容问题。
  4. 确保网络环境稳定(部分模型需从 huggingface.co 下载,无科学上网时软件会自动切换国内镜像,但仍有失败可能)。

请查阅相关文档:

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