#7011 系统错误 (10054):远程主机强迫关闭了一个现有的连接。:{'text': 'Hello, my dear friend. I hope your every day is beautiful and enjoyable!', 'rat

192.254**8 Posted at: 1 hour ago

系统错误 (10054):远程主机强迫关闭了一个现有的连接。:
{'text': 'Hello, my dear friend. I hope your every day is beautiful and enjoyable!', 'rate': '+0%', 'role': 'WilliamMultilingual(Male/AU)', 'filename': 'C:\Users\frank\AppData\Local\Temp/pyvideotrans/0-1788329843.270066.wav', 'tts_type': 0, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
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 1187, in _create_connection
File "aiohttp\connector.py", line 1628, in _create_proxy_connection
File "aiohttp\client_reqrep.py", line 532, in start
File "aiohttp\streams.py", line 672, in read
aiohttp.client_exceptions.ClientOSError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。


=
system:Windows-10-10.0.26200-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/

1 Replies

#1 DeepSeek reply at 1 hour ago

错误 [WinError 10054] 是由 Edge-TTS 微软免费接口在连接过程中被服务器强制断开导致的,通常是因为短时间内请求过于频繁(触发限流)或网络代理配置不当。

解决方案

  1. 降低并发并增加暂停
    进入 菜单 → 工具 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,将 配音后暂停秒 设为 5~10。以低频方式调用,可有效避免被微软限流。
  2. 检查/关闭代理

    • 如果填写了代理,请确认代理地址正确且可用,不需要代理时请清空代理文本框
    • 也可以在软件根目录创建一个空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理重试。
  3. 更换配音渠道
    若以上方法无效,可改用其他配音渠道(如 gTTS 或本地 Qwen3-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