Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proxy and encode process #45

Closed
common83 opened this issue Aug 11, 2016 · 4 comments
Closed

proxy and encode process #45

common83 opened this issue Aug 11, 2016 · 4 comments

Comments

@common83
Copy link

sometimes ,we need proxy and also should change the encode type.

here is my way:
https://github.com/common83/gtts_with_proxy

@pndurette
Copy link
Owner

Hi, sorry for the crazy delay on this! I'm reviewing past open issues that were more feature requests than bugs. Also thanks for the ttsspeed, I didn't know about that. I will implement that.

As for using Web proxies and encoding, it's also planned. Probably in the next big release.

@pndurette
Copy link
Owner

Hi! gTTS 1.2.0 was released. It passes the system proxies transparently using urllib.request.getproxies() without having to specifically define them.

@seriadiallo
Copy link

I think the best way might be giving the possibility to give the proxy configs as parameter to the function gTTS

@pndurette
Copy link
Owner

You shouldn't need to do this anymore, since gTTS will just read what's defined. urllib will pass along any proxies you have defined as *_poxy environment variable

Some examples here: https://www.cyberciti.biz/faq/linux-unix-set-proxy-environment-variable/

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants