hs-CN / msedge-tts

This library is a wrapper of MSEdge Read aloud function API. You can use it to synthesize text to speech with many voices MS provided.
MIT License
4 stars 1 forks source link

Proxy support #1

Closed rbozan closed 7 months ago

rbozan commented 8 months ago

Hi, is there a way to get proxy support in this crate? So I can proxy the Websocket requests through my proxy?

hs-CN commented 8 months ago

hi, thanks for the issue. I've read the documentation for isahc and tungstenite. isahc support http_proxy, https_proxy and socks4/5 proxy, so get_voice_list can easily support all proxy types. Tungstenite doesn't seem to have such support #177 The good thing is that Tungstenite allows us to use our own TCP/TLS stream, and I might be able to establish a proxy connection before starting the websocket handshake. But it's going to be a busy time starting tomorrow when we have Chinese New Year, so I'll deal with that in a few days.

hs-CN commented 7 months ago

fixed on #2 .