#3745 TaskCfgSTT(is_cuda=True, uuid='8e0aeaf08f', cache_folder='D:/fanyi/win-pyvideotrans-v3.98-312/tmp/27640/8e0aeaf08f', tar

151.242* Posted at: 3 hours ago 👁10

语音识别阶段出错 [阿里FunASR(本地)] Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 898, 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 152, in recogn
File "videotrans\recognition\__init__.py", line 242, 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 288, in _new_process
RuntimeError: Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 898, 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=True, uuid='8e0aeaf08f', cache_folder='D:/fanyi/win-pyvideotrans-v3.98-312/tmp/27640/8e0aeaf08f', target_dir='C:/Users/24202/Desktop/win-pyvideotrans-v3.98-312/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='C:/Users/24202/Desktop/win-pyvideotrans-v3.98-312/output/recogn/02-1. 명시성과 퀄리티.srt', target_wav=None, target_wav_output=None, name='F:/75/Coloso Asset Niken/Videos/02-1. 명시성과 퀄리티.mp4', noextname='02-1. 명시성과 퀄리티', basename='02-1. 명시성과 퀄리티.mp4', ext='mp4', dirname='F:/75/Coloso Asset Niken/Videos', shound_del_name=None, detect_language='ko', recogn_type=3, model_name='Fun-ASR-Nano-2512', shibie_audio='D:/fanyi/win-pyvideotrans-v3.98-312/tmp/27640/8e0aeaf08f/removed_noise_1774175929.559386.wav', remove_noise=True, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/fanyi/win-pyvideotrans-v3.98-312

1 Replies

该错误是由于 FunASR 本地模型未正确注册或下载不完整导致的。具体表现为 AssertionError: FunASRNano is not registered

解决方案:

  1. 检查模型下载:确保 FunASR 模型已成功下载。首次使用“阿里FunASR(本地)”渠道时,软件会在线下载模型。如果网络不佳,可能导致下载失败或不完整。
  2. 手动下载模型:如果自动下载失败,请尝试手动下载模型文件。

    • 前往模型仓库:https://huggingface.co/iic/FunASR-Nano-2512
    • 下载该页面所有文件(.json, .bin, .txt 等)。
    • 在软件根目录下的 models 文件夹内,创建名为 models--iic--FunASR-Nano-2512 的文件夹。
    • 将下载的所有文件复制到该文件夹内。
  3. 检查文件路径:确保软件安装路径(如 D:/fanyi/win-pyvideotrans-v3.98-312不包含中文或特殊符号,且具有读写权限。
  4. 清理缓存并重试:在软件主界面左上角勾选 清理已生成 复选框,然后重新处理视频,以强制重新下载和使用模型。
  5. 切换识别渠道:如果问题持续,可以暂时切换到其他语音识别渠道,例如 faster-whisper(本地)qwen-asr(本地)

请查阅相关文档:

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