Text to speech Raspberry pi error - gtts.tts.gTTSError: Connection error during token calculation
0
I am writing a code to convert some english language lines in the file "questions.txt" to speech via google text-to-speech on a Raspberry Pi 3. I am using the gTTS library of Python to do the above. But my code returns the following error Starting Conversion Traceback (most recent call last): File "tts.py", line 21, in <module> getAudioQues() File "tts.py", line 16, in getAudioQues myobj.save("../data/quesAudio/"+str(quesNo)+".mp3") File "/home/pi/.local/lib/python2.7/site-packages/gtts/tts.py", line 247, in save self.write_to_fp(f) File "/home/pi/.local/lib/python2.7/site-packages/gtts/tts.py", line 192, in write_to_fp str(e)) gtts.tts.gTTSError: Connection error during token calculation: HTT