#4208 语音识别阶段出错 [阿里FunASR(本地)] Traceback (most recent call last): File "videotrans\process\stt_fun.py", line 891, in funasr_ml

171.12* Posted at: 12 hours ago 👁19

语音识别阶段出错 [阿里FunASR(本地)] Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 891, 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 105, in run
File "videotrans\task\_speech2text.py", line 159, in recogn
File "videotrans\recognition\__init__.py", line 262, in run
File "videotrans\recognition\_base.py", line 143, in run
File "videotrans\recognition\_funasr.py", line 64, in _exec
File "videotrans\configure\_base.py", line 289, in _new_process
RuntimeError: Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 891, 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
TaskCfgSTT(is_cuda=False, uuid='eaa020c354', cache_folder='F:/BaiduNetdiskDownload/win-pyvideotrans-v3.99-420/tmp/13264/eaa020c354', target_dir='F:/BaiduNetdiskDownload/win-pyvideotrans-v3.99-420/output/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='F:/BaiduNetdiskDownload/win-pyvideotrans-v3.99-420/output/recogn/【高中物理一轮复习系统课】9.1 电荷、起电与验电器.srt', target_wav=None, target_wav_output=None, name='F:/bilibili/一轮复习/【高中物理一轮复习系统课】9.1 电荷、起电与验电器.mp4', noextname='【高中物理一轮复习系统课】9.1 电荷、起电与验电器', basename='【高中物理一轮复习系统课】9.1 电荷、起电与验电器.mp4', ext='mp4', dirname='F:/bilibili/一轮复习', shound_del_name=None, detect_language='en', recogn_type=3, model_name='Fun-ASR-MLT-Nano-2512', shibie_audio='F:/BaiduNetdiskDownload/win-pyvideotrans-v3.99-420/tmp/13264/eaa020c354/【高中物理一轮复习系统课】9.1 电荷、起电与验电器-1776842430.6026092.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False)

1 Replies

该错误是因为 FunASRNano 模型未正确注册导致,通常由模型文件损坏或缺失引起。

  1. 删除软件目录 models 文件夹下的 FunASR-MLT-Nano-2512 相关文件夹,让软件重新自动下载。
  2. 如果自动下载失败,请手动下载模型文件放入 models/ 目录(注意文件夹命名规则),参考知识库中 faster-whisper 模型的手动下载方式操作。
  3. 若仍报错,请提供 logs/ 目录下的日志文件底部 30 行内容以便进一步分析。

请查阅相关文档:

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.

Related resource