#8275 System Error (None): None:{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate':

140.235**8 Posted at: 2 hours ago

System Error (None): None:
{'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-1792396814.8298082.wav', 'tts_type': 0, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "aiohttp\connector.py", line 1412, in _start_tls_connection
File "asyncio\base_events.py", line 1253, in start_tls
ConnectionResetError

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 1677, in _create_proxy_connection
File "aiohttp\connector.py", line 1445, in _start_tls_connection
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl: [None]


=
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 2 hours ago

核心原因:Edge-TTS 需要连接 speech.platform.bing.com:443,而你的请求走了代理(堆栈中的 _create_proxy_connection → _start_tls_connection → ConnectionResetError),当前代理节点连接被重置、代理服务未启动,或该域名被代理规则拦截,导致 TLS 握手失败。

解决步骤(按顺序尝试):

  1. 检查代理填写:主界面「对齐控制」行右侧的网络代理文本框,若填写了 http://127.0.0.1:10808 之类的地址,请确认代理程序确实在运行且端口正确;若不需要代理,直接清空该文本框并保存。
  2. 强制 Edge-TTS 绕过代理:在软件根目录 D:/pyVideoTrans/ 下新建一个空文件,命名为 edgetts-noproxy.txt(注意全小写、扩展名为 txt),重启软件后再试听/配音。这是最直接的解法。
  3. 代理节点问题:若必须使用代理访问外网,请切换节点——微软 bing 语音域名对部分脏 IP 会直接重置连接;也可在代理软件中将 speech.platform.bing.com 设为直连。
  4. 降低调用频率:进入 菜单 → 工具 → 高级选项 → 字幕配音,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10,避免高频请求被微软限流。
  5. 若仍不行,检查杀毒软件/防火墙是否拦截了 sp.exe 的出站连接,或将软件目录加入白名单。

补充说明:本次报错发生在 ListenVoice.py(配音角色试听),属于同一条 Edge-TTS 网络链路问题,修复后正式配音也会恢复正常。

请查阅相关文档:

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