pndurette / gTTS

Python library and CLI tool to interface with Google Translate's text-to-speech API
http://gtts.readthedocs.org/
MIT License
2.26k stars 361 forks source link

Update languages github action doesn't work properly #474

Closed soundvibe closed 1 month ago

soundvibe commented 1 month ago

I was looking into the update languages github workflow and noticed that it executes scripts/gen_langs.py which should fetch available languages, but after it successfully lists all google text-to-speech supported languages, it then constructs new gtts instance without setting lang_check to False, so even if new language would be supported by Google, code will always reject it.

I've discovered this because Lithuanian language is supported in Google translate UI (using this internal batchexecute API) but this library for some reason doesn't support it.

pndurette commented 1 month ago

Oh! Hmm, well that's not good. Let me take a look tomorrow (Wednesday). Thanks for doing the investigating!