#6889 系统错误 (10054):远程主机强迫关闭了一个现有的连接。:{'text': 'Yeah yes.', 'role': 'Steffan(Male/US)', 'filename': 'G:/BaiduNetdiskDownload/wi

240a:**:d7c6 Posted at: 1 hour ago

系统错误 (10054):远程主机强迫关闭了一个现有的连接。:
{'text': 'Yeah yes.', 'role': 'Steffan(Male/US)', 'filename': 'G:/BaiduNetdiskDownload/win-pyvideotrans-v4.11/tmp/16124/1787755021.3664894-onlyone_setrole.wav', 'tts_type': 0}
Traceback (most recent call last):
File "aiohttp\connector.py", line 1263, in _wrap_create_connection
File "asyncio\base_events.py", line 1103, in create_connection
File "asyncio\base_events.py", line 1133, in _create_connection_transport
File "asyncio\selector_events.py", line 862, in _read_ready__data_received
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。

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 233, in run
File "videotrans\tts\_base.py", line 100, 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 725, in _connect_and_send_request
File "aiohttp\connector.py", line 622, in connect
File "aiohttp\connector.py", line 1189, in _create_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.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl: [远程主机强迫关闭了一个现有的连接。]


=
system:Windows-10-10.0.22631-SP0
version:v4.11
frozen:True
language:zh
root_dir:G:/BaiduNetdiskDownload/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS(微软免费配音接口)无法连接到其服务器 导致的错误。错误核心是 Cannot connect to host speech.platform.bing.com:443,即网络层连接被远程主机强制关闭,通常是代理干扰、网络不通或被服务端限流所致。

解决方案(按顺序尝试):

  1. 检查代理设置

    • 如果软件中配置了代理(菜单 → 设置 → 网络代理),请先清空代理文本框并保存,Edge-TTS 对代理环境很敏感。
    • 如果系统全局开启了代理/VPN,可能干扰连接,建议暂时关闭。
  2. 强制 Edge-TTS 绕过代理

    • 进入软件根目录(即 sp.exe 所在文件夹,本机为 G:/BaiduNetdiskDownload/win-pyvideotrans-v4.11/
    • 新建一个空文件,命名为 edgetts-noproxy.txt(注意后缀名必须为 .txt,内容留空)
    • 保存后重启软件再试。此文件会强制 Edge-TTS 不走代理。
  3. 降低 Edge-TTS 请求频率

    • 进入 菜单 → 工具 → 高级选项 → 字幕配音调整
    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 510
    • 保存后重试
  4. 确认网络连通性

    • 在浏览器中访问 https://speech.platform.bing.com,确认能否正常打开(若无法访问,说明该域名在当前网络下不可达,需换网络环境)。
  5. 更换配音渠道(最稳妥)

    • 若以上方法均无效,说明当前网络环境下微软 Edge-TTS 服务不可用。请将配音渠道切换为其他免费渠道:

      • Qwen3-TTS(内置):首次使用需下载模型,支持中文/英文等
      • OmniVoice(内置):支持 600 种语言
      • F5-TTS(内置):支持中英等多语言
      • ChatterBox(内置):支持 20+ 语言
    • 若仍有其他本地渠道可用,也可在 菜单 → TTS设置 中配置。

补充说明:Edge-TTS 属于微软免费公开接口,高频使用或网络环境不佳时极易出现连接被重置。上述第 3 步的频率限制和第 2 步的代理绕过是关键措施。

请查阅相关文档:

Thinking...
Post Your Reply
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