#6526 语音识别阶段出错[openai-whisper(内置)] <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。>:Traceback (most recent call last): File

183.247.**9 Posted at: 15 hours ago

语音识别阶段出错[openai-whisper(内置)] :Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1448, in connect
File "http\client.py", line 942, in connect
File "socket.py", line 857, in create_connection
File "socket.py", line 845, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_openai.py", line 53, 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
......
_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1448, in connect
File "http\client.py", line 942, in connect
File "socket.py", line 857, in create_connection
File "socket.py", line 845, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_openai.py", line 53, 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:
cfg=TaskCfgSTT(uuid='506808103a', name='E:/[email protected]4', dirname='E:/', noextname='4k688.com@FC2-PPV-4938999', basename='[email protected]4', ext='mp4', target_dir='D:/py/output/recogn', cache_folder='D:/py/tmp/22508/506808103a', 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='D:/py/output/recogn/[email protected]', target_wav=None, target_wav_output=None, detect_language='auto', recogn_type=1, model_name='large-v3', shibie_audio='D:/py/tmp/22508/506808103a/[email protected]', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.19045-SP0
version:v4.09
frozen:True
language:zh
root_dir:D:/py

1 Replies

核心原因:openai-whisper(内置) 首次使用需要联网下载 large-v3.pt 模型,当前网络无法连接到模型下载服务器,导致连接被拒绝(WinError 10061)。这不是软件功能错误,而是模型下载失败。

解决方法按顺序尝试:

  1. 配置可用的网络代理

    • 在国内直连 openaipublic.azureedge.net 很容易失败。
    • 在主界面「网络代理」处填写可用代理,格式如 http://127.0.0.1:7890,保存后重新开始任务。
    • 如果已经填写了代理,请确认代理软件已开启、端口号正确。
    • 如果不需要代理,请将代理框清空后再试。
  2. 手动下载模型文件

    • 下载 large-v3.pt 模型文件:

      https://openaipublic.azureedge.net/main/whisper/models/e5b1a55b89c1367dacf97e3e19bfd829a01529dbfdeefa8caeb59b3f1b81dadb/large-v3.pt
    • 将文件放到软件目录下的 models/ 文件夹内。
    • 文件名必须保持为 large-v3.pt,如果浏览器自动重命名(如 large-v3(2).pt),必须改回原文件名。
  3. 更换语音识别渠道

    • 如果不想处理下载问题,可直接改用 faster-whisper(内置)Qwen-ASR(内置)
    • 中文视频推荐 Qwen-ASR(内置)FunASR(内置)

请查阅相关文档:

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

Dondate via PayPal

Related resource