Hi, It could be that the servers are indeed not reachable, or that you have done too many requests recently.
It could also be a bug in gtts. You might try with the current development version of gtts from github. Cheers, Peter On Thu, 6 Aug 2020, 12:41 , <[email protected]> wrote: > Greetings everyone, I'm having a *problem trying to use the Google's > text-to-speech* feature. > > > > *The error message:* > > > Failed to connect. Probable cause: Host 'https://translate.google.en-US/' > is not reachable > > > Traceback (innermost last): > > File "/usr/lib/python3/dist-packages/mnemosyne/pyqt_ui/pronouncer_dlg.py", > line 30, in run > > filename = self.pronouncer.download_tmp_audio_file(\ > > File > "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/pronouncers/google_pronouncer.py", > line 36, in download_tmp_audio_file > > tts.save(filename) > > File "/home/rafa/.local/lib/python3.8/site-packages/gtts/tts.py", line > 295, in save > > self.write_to_fp(f) > > File "/home/rafa/.local/lib/python3.8/site-packages/gtts/tts.py", line > 272, in write_to_fp > > raise gTTSError(tts=self) > > gtts.tts.gTTSError: Failed to connect. Probable cause: Host ' > https://translate.google.en-US/' is not reachable > > > *What I tried:* > > > I installed gTTS and googletrans using pip3, but it did not solve the > problem. > > > *My setup:* > > > I'm currently using Ubuntu 20.04.1 LTS x86_64 > > > -- > You received this message because you are subscribed to the Google Groups > "mnemosyne-proj-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mnemosyne-proj-users/9450c21d-0205-4132-bb28-c948bf910f51o%40googlegroups.com > <https://groups.google.com/d/msgid/mnemosyne-proj-users/9450c21d-0205-4132-bb28-c948bf910f51o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/CAMdxoPEPnZML03Qs%2Bymr0_Ks0cGtud2-CPwbHerX%3DmAWOYiT%2Bg%40mail.gmail.com.
