Repository navigation
|
I am getting HTTP 403 during synthesis with edge-tts 7.2.8, while voice listing and Microsoft Edge Read Aloud work. I have reviewed similar discussions (#422 and #457) and issue #458; I am already using the latest published version. Environment
Minimal reproductionpython -m edge_tts --voice es-ES-AlvaroNeural --text "Esta es una prueba de conexión." --write-media test.mp3Expected: a playable MP3. Actual: Checks performed
An earlier complete audiobook conversion succeeded. Its temporary Docker container was removed with --rm, so its exact dependency versions are unavailable. I have not established whether this is a network-specific failure or a wider compatibility issue. Is there an additional diagnostic or compatibility fix to determine why synthesis is rejected while voice listing and Edge Read Aloud succeed? Thank you. |
Replies: 2 comments 1 reply
|
I'd capture the first 403 and the retry separately before changing more version strings. In 7.2.8's A debugger breakpoint in
The token calculation uses corrected time rounded to five-minute intervals. If the first response has a plausible server date, the correction brings the clock into line, and the retry still returns 403, simple local clock skew becomes a weaker explanation. That would not establish a particular compatibility fix. For the network question, I'd repeat your unchanged short command on the same Windows machine and virtual environment using a separate connection, such as a mobile hotspot, with any explicit proxy kept out of that comparison. Success on only one connection would point toward a network-dependent failure; failure on both would still leave compatibility and service-side rejection open. Voice listing uses a separate HTTP GET, so its success doesn't verify the synthesis WebSocket handshake. I haven't reproduced your failure; these checks are intended to narrow it down, not claim a working fix. |
|
Confirmed: upgrading to edge-tts 7.3.1 resolved the synthesis issue on my NAS (Python 3.12 in Docker). I tested es-ES-AlvaroNeural at rate=-10% successfully, then converted a complete EPUB through my audiobook pipeline. The audio plays correctly. The temporary endpoint override has been removed; this is using the standard 7.3.1 package. Thanks to the maintainers and everyone who helped investigate! |
I had this problem, but it resolved after the last release.