#7647 Connection timeout, please check network stability:{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyan

2602**1ae Posted at: 1 hour ago

Connection timeout, please check network stability:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)', 'filename': 'C:\Users\Baasir\AppData\Local\Temp/pyvideotrans/0-1790499411.3764987.wav', 'tts_type': 0, 'language': 'zh-cn', '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
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
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 1397, in _start_tls_connection
File "async_timeout\__init__.py", line 179, in aexit
File "async_timeout\__init__.py", line 265, in _do_exit
asyncio.exceptions.TimeoutError

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 119, in run
File "videotrans\tts\_base.py", line 93, 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 154, 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 729, in _connect_and_send_request
aiohttp.client_exceptions.ConnectionTimeoutError: Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=a6294e13c0d14ef39d3c2055a53d93bd&Sec-MS-GEC=D1D7ADA073A2419A25A7C6416CE1F447C3A3AECC771DB81C6940FCC41F586C5C&Sec-MS-GEC-Version=1-143.0.3650.75


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS(免费) 渠道连接微软语音服务器超时导致的,与你填写的文本内容无关。

报错显示走的是代理连接(_create_proxy_connection)且 TLS 握手超时,说明网络到 speech.platform.bing.com 的连接不稳定或被代理阻断。

按以下步骤处理:

  1. 检查/清空代理:主界面"对齐控制"行右侧的代理文本框,如果你填了代理,先清空保存(Edge-TTS 走代理易超时);如确实需要代理才能访问外网,请确保代理服务正常运行、端口正确,并测试能否访问 speech.platform.bing.com。

  2. 强制 Edge-TTS 绕过代理:在软件根目录(D:/win-pyvideotrans-v4.14/)新建一个空文本文件,命名为 edgetts-noproxy.txt(内容留空即可),保存后重启软件再试。

  3. 降低并发、增加间隔:菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10,EdgeTTS配音渠道失败重试次数 设为较大值(如 5~10),避免高频请求被限流。

  4. 改用国内可用的配音渠道:若网络环境长期无法稳定连接微软接口,建议把配音渠道换成无需外网的方案,例如内置的 Qwen3-TTS(内置)、ZipVoice(内置)、F5-TTS(内置),或在线收费的 豆包语音合成2.0、Minimaxi 等。

  5. 验证网络:用浏览器或命令行测试能否打开 https://speech.platform.bing.com,若无法访问说明是网络/代理本身问题,与软件无关。

请查阅相关文档:

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