Comments (4)
Hi @zwssunny!
So this should be better documented, but it's possible to set proxy settings with environment variables via the way requests
handles it. See here, specifically that part:
When the proxies configuration is not overridden per request as shown above, Requests relies on the proxy configuration defined by standard environment variables http_proxy, https_proxy, no_proxy, and all_proxy. Uppercase variants of these variables are also supported. You can therefore set them to configure Requests (only set the ones relevant to your needs):
$ export HTTP_PROXY="http://10.10.1.10:3128"
$ export HTTPS_PROXY="http://10.10.1.10:1080"
$ export ALL_PROXY="socks5://10.10.1.10:3434"
$ python
>>> import requests
>>> requests.get('http://example.org')
from gtts.
Hi@pndurette
I know how to do it, I modified the program and submitted it, please merge it without affecting the original function
Thanks!
from gtts.
I found urllib.request.getproxies() return {}
from gtts.
Thanks for #403! I've added some comments!
from gtts.
Related Issues (20)
- Cant use 'tr' language
- gTTS throws unknown error for some languages, help me find why. HOT 3
- gtts.tts.gTTSError: 200 (OK) from TTS API. Probable cause: Unknown HOT 8
- Can Any one tell me even after tld set to com why it's connecting to translate.google.en? HOT 12
- Loosen dependencies if possible or at least make `click` optional HOT 3
- test fails: test_file_ascii and test_file_utf8: AssertionError HOT 3
- No pauses if 100 characters limit HOT 6
- Timestamps of the spoken words HOT 1
- Chinese example doesn't work HOT 3
- gtts_cli breaks when text starts with '-' HOT 3
- Add ability to adjust speed HOT 4
- 2mn latency at the save step HOT 3
- Add Support for Farsi/ Persian HOT 1
- Want support for LT lithuanian lang HOT 2
- Possible to add support for neural wavenet and studio? HOT 1
- readthedocs out of date HOT 1
- GTTS is adding in a word when speaking. HOT 1
- SD106 appears to mean South Dakota 106 HOT 1
- Update languages github action doesn't work properly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtts.