#5861 <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。>:Traceback (most recent call last): File

124.88* Posted at: 1 hour ago

: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_fun.py", line 51, 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:
语音识别阶段出错:openai-whisper(本地), 翻译字幕阶段出错: Google(免费), 配音阶段出错:Edge-TTS(免费)
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 47, in run
File "videotrans\task\trans_create.py", line 322, in recogn
File "videotrans\recognition\__init__.py", line 190, in run
File "videotrans\recognition\_base.py", line 94, in run
File "videotrans\recognition\_whisper.py", line 34, in _exec
File "videotrans\recognition\_whisper.py", line 77, in _openai
File "videotrans\configure\base.py", line 253, in _new_process
videotrans.configure.excepts.VideoTransError: :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_fun.py", line 51, 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:
TaskCfgVTT(uuid='fbfb927af5', name='F:/YouTube/长视频/集锦/cu/7月16日 1).mp4', dirname='F:/YouTube/长视频/集锦/cu', noextname='7月16日 1)', basename='7月16日 1).mp4', ext='mp4', target_dir='F:/YouTube/长视频/集锦/cu/7月16日 1)-mp4', cache_folder='F://tmp/30096/fbfb927af5', is_cuda=True, source_language='英语', source_language_code='en', source_sub='F:/YouTube/长视频/集锦/cu/7月16日 1)-mp4/en.srt', source_wav='F://tmp/30096/fbfb927af5/en.wav', source_wav_output='F:/YouTube/长视频/集锦/cu/7月16日 1)-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/YouTube/长视频/集锦/cu/7月16日 1)-mp4/zh-cn.srt', target_wav='F://tmp/30096/fbfb927af5/target.wav', target_wav_output='F:/YouTube/长视频/集锦/cu/7月16日 1)-mp4/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=1, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='F:/YouTube/长视频/集锦/cu/7月16日 1)-mp4/7月16日 1).mp4', novoice_mp4='F://tmp/30096/fbfb927af5/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='F://tmp/30096/fbfb927af5/vocal.wav', clear_cache=True, background_music='', subtitle_type=4, only_out_mp4=False, recogn2pass=False, output_srt=2, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26100-SP0
version:v4.01
frozen:True
language:zh
root_dir:F:/

1 Replies

这是因为语音识别模型下载时无法连接到服务器(ConnectionRefusedError)。你使用的是 openai-whisper(本地内置) + large-v3-turbo 模型,首次运行需要从 hugginface.co 或国内镜像站自动下载模型文件,但由于网络限制或防火墙拦截导致连接被拒绝。

解决方法(任选其一):

  1. 开启科学上网:如果你的网络环境无法直连国外服务器,请先开启 VPN / 代理,确保能访问 huggingface.cohf-mirror.com
  2. 手动下载模型:将 large-v3-turbo.pt 模型文件下载后放入 软件目录/models/ 文件夹内(文件名需正确)。

    • 下载地址(.pt 文件):
      https://openaipublic.azureedge.net/main/whisper/models/aff26ae408abcba5fbf8813c21e62b0941638c5f6eebfb145be0c9839262a19a/large-v3-turbo.pt
  3. 切换为 faster-whisper(推荐):在语音识别渠道中选择 faster-whisper(本地内置) + large-v3 模型,其模型下载机制可能更稳定。
  4. 检查代理设置:如果使用了代理,请确认主界面底部“网络代理”框中填写了正确的代理地址(如 http://127.0.0.1:7890);如果不需要代理,请清空该框并保存。

模型下载完成后,重新点击“开始”即可。注意 openai-whisper 模型较大,下载时需要耐心等待。

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