#5439 断网使用出错,联网的时候正常语音识别阶段出错[阿里FunASR(本地)(本地内置)] FunAudioLLM/Fun-ASR-Nano-2512 is not registered:Traceback (most recent call l

240e:b8f* Posted at: 15 hours ago

断网使用出错,联网的时候正常
语音识别阶段出错[阿里FunASR(本地)(本地内置)] FunAudioLLM/Fun-ASR-Nano-2512 is not registered:Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 613, 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: FunAudioLLM/Fun-ASR-Nano-2512 is not registered

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 100, in process_task

File "videotrans\task\trans_create.py", line 319, in recogn

File "videotrans\recognition\__init__.py", line 191, in run

File "videotrans\recognition\_base.py", line 90, in run

File "videotrans\recognition\_funasr.py", line 61, in _exec

File "videotrans\configure\base.py", line 272, in _new_process

videotrans.configure.excepts.VideoTransError: FunAudioLLM/Fun-ASR-Nano-2512 is not registered:Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 613, 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: FunAudioLLM/Fun-ASR-Nano-2512 is not registered
cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: D:/movie/百姓贵族/I/百姓贵族01.mp4,
输出结果保存到文件夹: D:/movie/output/百姓贵族01-mp4,
临时文件夹: D:/ai/pyvideotrans/win-pyvideotrans-v4.03-0623/tmp/2708/aeba1e480e
已选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:阿里FunASR(本地)(本地内置), model_name: Fun-ASR-Nano-2512, 发音语言: 日语, 断句方式:默认断句
翻译渠道:M2M100(本地内置),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:


=
system:Windows-10-10.0.17763-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/ai/pyvideotrans/win-pyvideotrans-v4.03-0623

3 Replies

这是因为阿里 FunASR 的模型文件(Fun-ASR-Nano-2512)需要首次联网下载。在断网时模型尚未下载到本地,因此报 "is not registered" 错误。

解决方案:

  1. 联网状态下重新执行一次该任务,软件会自动下载模型文件到 models/ 目录。
  2. 下载完成后,后续即可断网使用。

如果已经下载过模型但仍报错,请检查 models/ 目录下是否存在 FunASR 相关的子文件夹,若缺失请手动下载模型并放置到正确目录(参考知识库第14节模型手动下载方法)。

models目录下有 FunASR 相关的子文件夹,模型文件都存在,仍出错

根据你的描述,模型文件虽然存在但可能不完整或路径不正确。Fun-ASR-Nano-2512 是一个在线模型,软件首次使用时必须联网自动下载到正确的子目录,手动放置容易出错。请按以下步骤操作:

  1. 彻底删除已存在的 FunASR 相关缓存
    关闭 pyVideoTrans,打开软件根目录下的 models/ 文件夹,删除所有以 models-- 开头且与 FunASRFun-AudioNano-2512 相关的子文件夹(如果有的话)。
  2. 联网重新运行一次任务
    重新启动软件,在联网状态下执行一次需要阿里 FunASR 识别的任务。软件会自动从 HuggingFace 或 ModelScope 下载完整的模型文件到正确的路径。
  3. 如果自动下载失败,请手动下载完整模型:
    访问 ModelScope 模型库,找到 FunASR 相关模型文件(例如 Fun-ASR-Nano-2512),将所有文件下载到 models/ 目录下新建的文件夹中,文件夹名称必须与模型名完全一致(如 Fun-ASR-Nano-2512)。

之后再次断网使用即可正常。若仍报错,请重新打开软件并复制最新的整段日志(从报错开始的前后20行)反馈。

Post Your Reply
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: ko-fi.com/jianchang512

Related resource