#6645 语音识别阶段出错[阿里FunASR(内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

14.212.**1 Posted at: 2 hours ago

语音识别阶段出错[阿里FunASR(内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

Traceback (most recent call last):

File "videotrans\util\help_down.py", line 121, in check_and_down_hf

File "huggingface_hub\utils\_validators.py", line 88, in _inner_fn

return fn(*args, **kwargs)

File "huggingface_hub\_snapshot_download.py", line 310, in snapshot_download

raise LocalEntryNotFoundError(

huggingface_hub.errors.LocalEntryNotFoundError: Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled. To enable repo look-ups and downloads online, pass 'local_files_only=False' as input.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "huggingface_hub\utils\_http.py", line 761, in hf_raise_for_status

response.raise_for_status()

File "httpx\_models.py", line 829, in raise_for_status

httpx.HTTPStatusError: Client error '404 Not Found' f
......
9-6616160463a03fd110ff3e0f;a0ad0d79-3220-45cd-96d8-8ef20fd5f884)

Repository Not Found for url: https://huggingface.co/api/models/iic/SenseVoiceSmall/revision/main.
Please make sure you specified the correct repo_id and repo_type.
If you are trying to access a private or gated repo, make sure you are authenticated and your token has the required permissions.
For more details, see https://huggingface.co/docs/huggingface_hub/authentication

During handling of the above exception, another exception occurred:

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 211, in run

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

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

File "videotrans\util\help_down.py", line 168, in check_and_down_hf

videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

cfg=TaskCfgSTT(uuid='61d7b6319a', name='G:/youtube/雪野lovetactic/20230717.mp4', dirname='G:/youtube/雪野lovetactic', noextname='20230717', basename='20230717.mp4', ext='mp4', target_dir='c:/soft/pyvideotrans/output/recogn', cache_folder='C:/SOFT/pyvideotrans/tmp/39984/61d7b6319a', is_cuda=True, 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:/soft/pyvideotrans/output/recogn/20230717.srt', target_wav=None, target_wav_output=None, detect_language='zh-cn', recogn_type=4, model_name='SenseVoiceSmall', shibie_audio='C:/SOFT/pyvideotrans/tmp/39984/61d7b6319a/20230717-1786736476.3565586.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.26200-SP0
version:v4.09
frozen:True
language:zh
root_dir:C:/SOFT/pyvideotrans

1 Replies

#1 DeepSeek reply at 2 hours ago

该报错是因为 FunASR 内置渠道的 SenseVoiceSmall 模型实际位于阿里 ModelScope,而自动下载时请求的是 HuggingFace 上的 iic/SenseVoiceSmall 仓库,该仓库在 HuggingFace 上不存在,因此返回 404;同时本地 models/ 目录下也没有可用的缓存模型,导致下载失败。

解决步骤:

  1. 点击报错弹窗中的【查看帮助教程】,打开官方模型手动下载页面,按其中 FunASR / SenseVoiceSmall 的说明操作。
  2. 手动下载模型文件后,放入软件目录 models/ 下对应的模型缓存文件夹中。
  3. 若已有下载失败产生的残留目录,请先删除 models/models--iic--SenseVoiceSmall 目录,再重新执行任务,让软件重新尝试下载。
  4. 如果你的网络可以正常访问阿里 ModelScope,建议清理残留缓存后重试;如果仍失败,可考虑临时改用其他 ASR 渠道,例如 faster-whisper(内置)Qwen-ASR(内置)Firered中文(内置)

如果手动下载后仍无法解决,请提供软件安装目录下 logs/ 中最新的日志文件底部约 30 行报错信息,以及软件左上角的版本号。

请查阅相关文档:

Thinking...
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 via ko-fi.com

Related resource