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

103.127**4 Posted at: 18 hours ago

System Error (None): None:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'BrianMultilingual(Male/US)', 'filename': 'C:\Users\24666\AppData\Local\Temp/pyvideotrans/0-1795939313.6419377.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 18 hours ago

底层原因:这是 Edge-TTS 的网络连接被重置(ConnectionResetError → Cannot connect to host speech.platform.bing.com:443)。从堆栈中的 _create_proxy_connection 可确认请求走了你填写的代理,代理在建立 TLS 阶段被中断/重置,导致语音合成失败。

处理步骤(按顺序尝试):

  1. 在 D:/pyVideoTrans/ 根目录下新建一个空文件,文件名严格为 edgetts-noproxy.txt(注意后缀是 .txt,不是 .txt.txt),强制 Edge-TTS 绕过代理直连。
  2. 同时清空主界面「同步对齐」行右侧的「网络代理」文本框(Edge-TTS 为微软公共接口,国内通常可直连,走代理反而更易失败),保存后重启软件重试。
  3. 若仍失败,进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整:

    • 将 EdgeTTS配音渠道配音并发数 设为 1
    • 将 配音后暂停秒 设为 5~10
    • 适当增大 EdgeTTS配音渠道失败重试次数
  4. 若代理是必须的(例如你需要它访问 Google 等其他服务),请换成稳定节点后重试;代理不稳定会持续触发该错误。
  5. 如上述均无效,说明当前网络到微软语音服务被阻断,可改用其他配音渠道,如 Qwen3-TTS(内置)、OmniVoice(内置) 本地渠道,或 DeepSeek/豆包等云 API 渠道。

补充:v4.16 也存在 Edge-TTS 403 验证问题(表现为 403 而非本次的连接重置),建议升级到 v4.19 及以上版本,避免旧版 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