Comments (7)
Similar issue here. I get requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
from gtts.
Me too!
I can suppress the error when i add the option verify=False
to the requests command in the gtts_token package on line 58.
However, i am also searching for a better solution ...
from gtts.
Hello,
I installed gtts using "pip install gTTS" and I get the ssl error when trying the commandline utility:
gtts-cli.py "Hello" -l 'en' -o hello.mp3
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
I tried to reinstall requests and certifi but no change.
How should I try the above approach ?
r = requests.get(self.GOOGLE_TTS_URL, params=payload, headers=headers)
change to
r = requests.get(self.GOOGLE_TTS_URL, params=payload, headers=headers,verify=False)
After changing .../gTTS-master/gtts/tts.py line 114 I assume I have to rbuild the utility (?)
Simply using "pip install gTTS" again, seems to download a fresh source and my changes are ignored.
I'm not experienced with Python stuff at all, I just need to use the tool to make some text available for vison impaired. Any help highly welcome, thx.
Tried to change line 114 in /usr/lib/python3.4/site-packages/gtts/tts.py
but the error remains.
from gtts.
Work around:
in
/usr/lib/python3.4/site-packages/requests/sessions.py
change line 572 from:
# Send the request
r = adapter.send(request, **kwargs)
to read
# Send the request
kwargs['verify'] = False
r = adapter.send(request, **kwargs)
from gtts.
works now, thank you very much !
from gtts.
Hi! gTTS 1.2.0 was released, fixing this. SSL verify is now always false, since we can live w/o it in our case.
from gtts.
After making changes use these lines of code in the file where u are using tts.save() to avoid warnings.
import urllib3
urllib3.disable_warnings()
from gtts.
Related Issues (20)
- 0xA0 is causing gtts-cli to send EOF. HOT 2
- Error: Unable to find token seed! Did https://translate.google.com change? HOT 2
- 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
- Proxy setting parameters need to be added HOT 4
- 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
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.