#8244 Proxy configuration issue, check settings or disable proxy:{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role':

120.230**0 Posted at: 1 hour ago

Proxy configuration issue, check settings or disable proxy:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Xiaoxiao(Female/CN)', 'filename': 'C:\Users\Admin\AppData\Local\Temp/pyvideotrans/0-1792248268.9156456.wav', 'tts_type': 0, 'language': 'zh-cn', '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', 7897)

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 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:7897 ssl: [Connect call failed ('127.0.0.1', 7897)]


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

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:软件配置的网络代理 127.0.0.1:7897 无法连接(代理服务未运行或端口错误),导致 Edge-TTS 走代理时连接被拒绝。

解决方案(二选一,推荐方案 1):

  1. 清空代理设置

    • 在主界面「同步对齐」行右侧的代理文本框中,清空原有内容并保存(Edge-TTS 在国内可直连,无需代理)。
    • 若确实需要代理,请先启动代理软件,确认端口确为 7897,再把地址填写为 http://127.0.0.1:7897 并保存。
  2. 强制 Edge-TTS 绕过代理

    • 在软件根目录 D:/pyVideoTrans/ 下新建一个空文本文件,命名为 edgetts-noproxy.txt(注意扩展名必须是 .txt,内容留空),重启软件后重试。

补充排查:

  • 检查系统的 HTTP_PROXY / HTTPS_PROXY 环境变量是否也指向了 7897 端口,若代理已关闭请一并清理。
  • 若直连后出现 403,请确认已使用 v4.16 版本(你的版本已是最新),并在「高级选项 - 字幕配音调整」中将 EdgeTTS配音渠道配音并发数 设为 1、配音后暂停秒 设为 5~10。

请查阅相关文档:

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