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

2602**4f38 Posted at: 1 hour ago

自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载
:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'en_female_1.wav', 'filename': 'C:\Users\3\AppData\Local\Temp/pyvideotrans/4-1789105060.2419987.wav', 'tts_type': 4, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\http_proxy.py", line 317, in handle_request
File "httpcore\_sync\http11.py", line 383, in start_tls
File "httpcore\_backends\sync.py", line 152, in start_tls
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED]
......
t
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1017)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\help_down.py", line 135, 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 328, in snapshot_download

raise LocalEntryNotFoundError(

huggingface_hub.errors.LocalEntryNotFoundError: Got: ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1017)
An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the specified revision on the local disk. Please check your internet connection and try again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 230, in run
File "videotrans\tts\_base.py", line 77, in run
File "videotrans\tts\_confuciustts.py", line 17, in _download
File "videotrans\util\help_down.py", line 168, in check_and_down_hf
videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:F:/jianji/win-pyvideotrans-v4.12-0908

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是网络代理的 SSL 证书验证失败(CERTIFICATE_VERIFY_FAILED: self signed certificate in certificate chain),导致从 HuggingFace 下载 Confucius-TTS 模型时连接被阻断。

解决方案(按优先级操作):

  1. 检查并处理网络代理:你使用了代理工具(如 Clash、V2Ray 等)并开启了 HTTPS 证书劫持(自签名证书),而 Python 的 httpx 库默认不信任该证书。请在代理工具中关闭"HTTPS 证书劫持/SSL 解密/MITM"功能,或改用可直连的网络环境。
  2. 手动下载模型(推荐,最稳定):

    • 按报错中的 Confucius-TTS 渠道,手动下载对应模型文件:

      • https://huggingface.co/netease-youdao/Confucius4-TTS/tree/main → 存放到 软件目录/models/models--netease-youdao--Confucius4-TTS
      • https://huggingface.co/facebook/w2v-bert-2.0/tree/main → 存放到 软件目录/models/models--models--facebook--w2v-bert-2.0
      • https://huggingface.co/nvidia/bigvgan_v2_22khz_80band_256x/tree/main → 存放到 软件目录/models/models--nvidia--bigvgan_v2_22khz_80band_256x
      • https://huggingface.co/funasr/campplus/tree/main → 存放到 软件目录/models/models--funasr--campplus
    • 下载后务必确认文件名与原文件一致(浏览器可能自动重命名为 xxx(1)),需改回原名。
  3. 设置代理绕过环境变量(如仍需代理访问):在系统环境变量或代理配置中设置 NO_PROXY,或在软件主界面"对齐控制"行右侧的代理文本框中填写正确格式的代理地址(如 http://127.0.0.1:端口号),确保代理工具本身不做证书拦截。
  4. 更换配音渠道:若暂时不需要克隆音色,可改用 Edge-TTS(免费) 渠道,无需下载模型即可使用,避免此问题。

请查阅相关文档:

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