#9010 Proxy configuration issue, check settings or disable proxy:{'text': 'Hello, my dear friend, I hope every day of yours is

103.127**4 Posted at: 19 hours ago

Proxy configuration issue, check settings or disable proxy:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'Brian(Male/US)', 'filename': 'C:\Users\24666\AppData\Local\Temp/pyvideotrans/0-1795938980.4830527.wav', 'tts_type': 0, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
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 501, in sock_connect
File "asyncio\selector_events.py", line 541, in _sock_connect_cb
ConnectionRefusedError: [Errno 10061] Connect call failed ('127.0.0.1', 21811)

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

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 132, in run
File "videotrans\tts\_base.py", line 95, in run
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 161, in _exec
File "edge_tts\communicate.py", line 613, in save
File "edge_tts\communicate.py", line 588, in stream
File "edge_tts\communicate.py", line 461, 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:21811 ssl: [Connect call failed ('127.0.0.1', 21811)]


=
system:Windows-10-10.0.22000-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 19 hours ago

这是因为软件中填写了网络代理地址 127.0.0.1:21811,但该端口上没有正在运行的代理服务(或端口号填写错误),Edge-TTS 通过此代理连接微软服务器时被拒绝(ConnectionRefusedError: [Errno 10061]),与语音内容、配音角色本身无关。

解决方案(任选其一):

  1. 如果不需要代理(推荐):将主界面「同步对齐」行右侧的 网络代理 文本框内容清空并保存,不要填写任何内容。国内访问 Edge-TTS 通常无需代理。
  2. 如果确实需要代理:请先确认你的代理软件已启动,并在其设置中查看真实的本地 HTTP 代理端口(常见为 7890、10808、10809 等)。将 21811 更正为实际端口,格式必须为 http://127.0.0.1:端口。
  3. 只想让 Edge-TTS 绕过代理、其他渠道仍走代理:在软件根目录(本例为 D:/pyVideoTrans/)下新建一个空文本文件并命名为 edgetts-noproxy.txt,重启软件后 Edge-TTS 将强制不走代理。
  4. 修改后,建议勾选主界面的 清理已生成 再重新执行,避免复用上次失败时生成的空音频。

补充提示:

  • 请勿随意填写代理地址,填写无效代理会导致所有网络请求失败的连带报错。
  • 该报错中 tts_type: 0 即 Edge-TTS 渠道;若是 403 报错则另属 v4.16 的 edge-tts 验证问题,需更新到 v4.16 修复版本(你当前已是 v4.16,本次问题不是 403)。

请查阅相关文档:

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