#7949 Network connection failed:{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate':

41.239**4 Posted at: 1 hour ago

Network connection failed:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'Yan(Female/HK)', 'filename': 'C:\Users\More\AppData\Local\Temp/pyvideotrans/0-1791726644.634484.wav', 'tts_type': 0, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
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 1078, in _ws_connect
aiohttp.client_exceptions.WSServerHandshakeError: 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=ab1acab6d44e451e8ff00abac4ac3e12&Sec-MS-GEC=4D68215A5DFDEAF975D0D9099B3D5E6F308B9FB10FD07536435B90D934D64658&Sec-MS-GEC-Version=1-143.0.3650.75'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 122, 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 590, in save
File "edge_tts\communicate.py", line 573, in stream
File "edge_tts\communicate.py", line 431, in __stream
File "aiohttp\client.py", line 1482, in aenter
File "aiohttp\client.py", line 1078, in _ws_connect
aiohttp.client_exceptions.WSServerHandshakeError: 403, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=f96d7c26b4fe46b1ae2ea3473b8c05dd&Sec-MS-GEC=4D68215A5DFDEAF975D0D9099B3D5E6F308B9FB10FD07536435B90D934D64658&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.26300-SP0
version:v4.15
frozen:True
language:en_US
root_dir:C:/Users/More/Documents/sub-app

1 Replies

#1 DeepSeek reply at 1 hour ago

This is a 403 handshake rejection from Microsoft's free Edge-TTS endpoint (wss://speech.platform.bing.com/...). It is not a bug in pyVideoTrans — it means your request was blocked at the network/IP level. Two possible causes:

  1. Rate limiting / IP flagged — Edge-TTS is a free public interface. Short bursts of concurrent requests cause Microsoft to temporarily block your public IP (403).
  2. Proxy interference — If you have filled a proxy in the main window (network proxy box), or a system-wide proxy is active, Edge-TTS's WebSocket handshake can be rejected.

Steps to fix

  1. Open Menu -> Tools/Options -> Advanced Options -> [Dubbing Settings]:

    • Set Concurrent dubbing threads / EdgeTTS配音渠道配音并发数 to 1
    • Set Pause (s) after each dubbing request / 配音后暂停秒 to 5–10
    • Increase EdgeTTS配音渠道失败重试次数 (Retries after EdgeTTS failure) moderately
  2. Close the software, then create an empty text file named exactly edgetts-noproxy.txt in the software root directory (same folder as sp.exe, in your case C:/Users/More/Documents/sub-app). This forces Edge-TTS to bypass the proxy. Restart the software.
  3. Clear the proxy field in the main window (Alignment row, right side network proxy box) if you are not certain it is valid. An invalid proxy address will make all network requests fail. Save, then retest.
  4. If you are using a VPN for other services: switch to a cleaner node, or wait 10–30 minutes for the IP block to expire, then retry. EdgeTTS automatically detects proxy errors and retries without proxy, but the IP-level 403 requires either waiting or changing the exit IP.
  5. If Edge-TTS keeps failing, switch the dubbing channel (TTS Service) to a different provider, e.g. Qwen3-TTS(built-in), OmniVoice-TTS, ZipVoice, or a paid cloud API.
Note: your log shows language: 'en' combined with role: 'Yan(Female/HK)' (a Cantonese/HK voice). Pick a voice that matches the dubbing language — e.g. en-US-JennyNeural or en-US-GuyNeural — otherwise the output pronunciation will be wrong even after the 403 is resolved.

请查阅相关文档:

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