This error indicates a connection issue with the Microsoft Edge-TTS service, likely due to network restrictions, regional blocking, or a temporary service outage.
To resolve this, please try the following steps in order:
- Check Your Network Connection: Ensure you have a stable internet connection. If you are using a VPN or proxy, try disabling it temporarily to see if it resolves the issue.
- Verify Regional Availability: The Edge-TTS service may be blocked or unstable in certain regions. If you are in a region where Microsoft services are restricted, you will need to use a different TTS service.
Switch to an Alternative TTS Service: In the main interface of pyVideoTrans, go to the "Voiceover (TTS)" section (Line 4) and select a different, preferably local, TTS engine.
- Recommended Free Local Options:
VITS-cnen or piper-tts. - If you need online service: Try
Azure TTS (requires an API key) or other available online APIs you have configured.
- Adjust Advanced Settings (if using Edge-TTS): If you must use Edge-TTS, go to Tools -> Options -> Advanced Options. In the "Voiceover Adjustments" section, reduce the "Concurrent voiceover threads" to
1 and increase the "Pause after voiceover (seconds)" to 5 or higher to reduce request frequency.
Since the error is a 403 (Forbidden) on a WebSocket connection to speech.platform.bing.com, the most likely cause is network-level blocking. Switching to a local TTS engine is the most reliable solution.
Please refer to the documentation for more details: