#1841 aiohttp.client_exceptions.ClientProxyConnectionError: Cannot connect to host 127.0.0.1:7890 ssl:<ssl.SSLContext object a

104.194* Posted at: 10 hours ago 👁10

配音阶段出错:[Edge-TTS(免费)] 代理设置不正确或代理不可用,请检查代理或关闭代理并删掉代理文本框中所填内容:
Traceback (most recent call last):
File "aiohttp\connector.py", line 1248, in _wrap_create_connection
File "aiohappyeyeballs\impl.py", line 122, in start_connection
File "aiohappyeyeballs\impl.py", line 73, in start_connection
File "aiohappyeyeballs\impl.py", line 208, in _connect_sock
File "asyncio\selector_events.py", line 499, in sock_connect
File "asyncio\selector_events.py", line 534, in _sock_connect_cb
ConnectionRefusedError: [Errno 10061] Connect call failed ('127.0.0.1', 7890)

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

Traceback (most recent call last):
File "videotrans\task\job.py", line 187, in run
File "videotrans\task\_dubbing.py", line 47, in dubbing
File "videotrans\task\_dubbing.py", line 134, in _tts
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 646, in run_until_complete
File "videotrans\task\_dubbing.py", line 128, in _async_dubb
File "edge_tts\communicate.py", line 590, in save
File "edge_tts\communicate.py", line 566, in stream
File "edge_tts\communicate.py", line 431, in __stream
File "aiohttp\client.py", line 1482, in aenter
File "aiohttp\client.py", line 1061, in _ws_connect
File "aiohttp\client.py", line 770, in _request
File "aiohttp\client.py", line 725, in _connect_and_send_request
File "aiohttp\connector.py", line 622, in connect
File "aiohttp\connector.py", line 1187, in _create_connection
File "aiohttp\connector.py", line 1586, in _create_proxy_connection
File "aiohttp\connector.py", line 1561, in _create_direct_connection
File "aiohttp\connector.py", line 1530, in _create_direct_connection
File "aiohttp\connector.py", line 1271, in _wrap_create_connection
aiohttp.client_exceptions.ClientProxyConnectionError: Cannot connect to host 127.0.0.1:7890 ssl: [Connect call failed ('127.0.0.1', 7890)]


=
system:Windows-10-10.0.26100-SP0
version:v3.84
frozen:True
language:zh
root_dir:D:/ai/qsca

1 Replies

错误信息显示 Edge-TTS 无法连接到您设置的代理服务器 127.0.0.1:7890。这通常是因为代理服务未启动或端口不正确。

请按以下步骤解决:

  1. 检查代理服务:确认您的代理软件(如 Clash、V2Ray 等)已启动,并且正在监听 127.0.0.1:7890 端口。
  2. 修改或清除代理设置

    • 如果代理服务正常,请确保 pyVideoTrans 主界面第5行的“网络代理”文本框内填写的是正确的代理地址,例如 http://127.0.0.1:7890
    • 如果代理服务未运行,或者您不需要通过代理使用 Edge-TTS,请清空“网络代理”文本框中的所有内容。
  3. 测试连接:关闭并重启 pyVideoTrans,然后重新尝试配音。

如果问题依旧,请尝试暂时关闭所有代理软件,并确保 pyVideoTrans 的代理设置为空,再测试 Edge-TTS 是否可用。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions