rany2 / edge-tts

Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key
https://pypi.org/project/edge-tts/
GNU General Public License v3.0
6.31k stars 622 forks source link

ConnectionTimeoutError: #251

Closed HYJ-creator closed 3 weeks ago

HYJ-creator commented 2 months ago

Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId= ....

when i run "edge-tts/examples/basic_generation.py", i got this error

rany2 commented 2 months ago

It seems like it's a connection issue. I don't have this issue.

kevindevm commented 2 months ago

same, started 3 days ago

xshuai1006 commented 1 month ago

I also encounter this problem now.

xshuai1006 commented 1 month ago

I also encounter this problem now. I upgrade edge-tts to the latest version 6.12 and try again, the issue disappears. May be it's just temporary connection issue.

xshuai1006 commented 1 month ago

I also encounter this problem now. I upgrade edge-tts to the latest version 6.12 and try again, the issue disappears. May be it's just temporary connection issue.

6.1.12

einsqing commented 1 month ago

Is there a solution to this?

raymerjacque commented 1 month ago

I'm having this problem as well, any solutions ?

rany2 commented 3 weeks ago

It's just a connection issue. It could also happen because Bing is blocked, in that case it might be worth trying a proxy.