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.
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 settinglang_check
toFalse
, 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.