#7971 Network connection failed:{'text': 'Olá, meu querido amigo, espero que cada um dos seus dias seja maravilhoso e agradáve

117.183**0 Posted at: 1 hour ago

Network connection failed:
{'text': 'Olá, meu querido amigo, espero que cada um dos seus dias seja maravilhoso e agradável!', 'rate': '+30%', 'role': 'Antonio(Male/BR)', 'filename': 'C:\Users\ADMINI~1\AppData\Local\Temp/pyvideotrans/0-1791776742.7400022.wav', 'tts_type': 0, 'language': 'pt-br', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "I:\dy\pyvideotrans.venv\lib\site-packages\edge_tts\communicate.py", line 566, in stream

async for message in self.__stream():

File "I:\dy\pyvideotrans.venv\lib\site-packages\edge_tts\communicate.py", line 431, in __stream

async with aiohttp.ClientSession(

File "I:\dy\pyvideotrans.venv\lib\site-packages\aiohttp\client.py", line 1482, in aenter

self._resp: _RetType = await self._coro

File "I:\dy\pyvideotrans.venv\lib\site-packages\aiohttp\client.py", line 1078, in _ws_connect

raise WSServerHandshakeError(

aiohttp.client_exceptions.WSServerHandshakeError: 403, message='Invalid
......
.py", line 21, in run

tts.run(

File "I:\dy\pyvideotrans\videotrans\tts\__init__.py", line 122, in run

return _cls(**kwargs).run()  # type:ignore

File "I:\dy\pyvideotrans\videotrans\tts\_base.py", line 95, in run

asyncio.run(self._exec())

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\asyncio\runners.py", line 44, in run

return loop.run_until_complete(main)

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\asyncio\base_events.py", line 649, in run_until_complete

return future.result()

File "I:\dy\pyvideotrans\videotrans\tts\_edgetts.py", line 161, in _exec

await communicate.save(mp3_path)

File "I:\dy\pyvideotrans.venv\lib\site-packages\edge_tts\communicate.py", line 590, in save

async for message in self.stream():

File "I:\dy\pyvideotrans.venv\lib\site-packages\edge_tts\communicate.py", line 573, in stream

async for message in self.__stream():

File "I:\dy\pyvideotrans.venv\lib\site-packages\edge_tts\communicate.py", line 431, in __stream

async with aiohttp.ClientSession(

File "I:\dy\pyvideotrans.venv\lib\site-packages\aiohttp\client.py", line 1482, in aenter

self._resp: _RetType = await self._coro

File "I:\dy\pyvideotrans.venv\lib\site-packages\aiohttp\client.py", line 1078, in _ws_connect

raise WSServerHandshakeError(

aiohttp.client_exceptions.WSServerHandshakeError: 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=cee7518288ea457ab71ea83ba82343e8&Sec-MS-GEC=BFFFA3E95B4FE8EF007B6B16DB9B4166AA14DFCB2AB96F625CCA657748FB35CC&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.19041-SP0
version:v4.15
frozen:False
language:zh_CN
root_dir:I:/dy/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:37:08) [MSC v.1944 64 bit (AMD64)]

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Edge-TTS 免费接口被微软服务器限流拦截导致的(HTTP 403)。当短时间内高频请求,你的公网 IP 会被微软防火墙临时封禁,无论是试听还是批量配音都会失败。

解决方案:

  1. 降低请求频率(关键):进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整

    • 将 EdgeTTS配音渠道配音并发数 设为 1
    • 将 配音后暂停秒 设为 5 ~ 10
    • 保存后重启软件再试
  2. 排查代理问题:

    • 若你使用了 VPN/代理,节点 IP 可能被微软标记为异常,请切换一个更干净的节点后重试
    • 也可在软件根目录(I:\dy\pyvideotrans)下新建空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理直连,保存后再试
  3. 若以上均无效,说明该 IP 已被临时封禁,可等待数小时后重试;或改用其他免费/本地配音渠道,例如 Qwen3-TTS(内置)、ChatterBox(内置)、Piper(内置) 等,避免持续受免费接口限流困扰。
提示:EdgeTTS配音渠道失败重试次数 不要设得过大,某些限流失败重试多少次也无法恢复,只会延长等待时间。

请查阅相关文档:

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