#3394 urllib.error.URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。>

183.242* Posted at: 3 hours ago 👁9

Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1282, in request
File "http\client.py", line 1328, in _send_request
File "http\client.py", line 1277, in endheaders
File "http\client.py", line 1037, in _send_output
File "http\client.py", line 975, in send
File "http\client.py", line 1447, in connect
File "http\client.py", line 941, in connect
File "socket.py", line 845, in create_connection
File "socket.py", line 833, in create_connection
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 61, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 73, in _download
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _open
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 1391, in https_open
File "urllib\request.py", line 1351, in do_open
urllib.error.URLError:


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

1 Replies

这是由于网络连接问题导致无法从 HuggingFace 下载 Whisper 模型文件。

  1. 配置网络代理:在软件设置中,进入“网络代理”选项,填写可用的代理地址和端口(例如 http://127.0.0.1:10809)。
  2. 手动下载模型:如果无法使用代理,请手动下载模型文件。

    • 访问 HuggingFace 镜像站(如 https://hf-mirror.com/)搜索并下载 openai/whisper-large-v3 模型文件。
    • 将下载的模型文件夹(例如 models--openai--whisper-large-v3)放入软件根目录下的 models/ 文件夹中。
    • 确保文件夹命名与软件预期一致(通常为 models--作者名--模型名 格式)。
  3. 切换语音识别渠道:暂时使用其他不需要下载大文件的识别渠道,例如“Edge-TTS”或“Google语音识别”(如果可用)。

请查阅相关文档:

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