I followed your instructions and downloaded the latest version from github. It worked.
Thank you for your help. Em domingo, 9 de agosto de 2020 às 04:58:38 UTC-4, Peter Bienstman escreveu: > After updating gTTS on my system, I had similar problems. Turns out the > 2.x version of gTTS changed the API syntax, which is why you have problems. > The latest version of Mnemosyne on github should fix this. > > Cheers, > > Peter > > > On Thursday, 6 August 2020 12:45:31 UTC+2, Peter Bienstman wrote: > >> 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/7ac2220d-7886-4883-a252-2fa1ac6aece6n%40googlegroups.com.
