Closed beew closed 1 year ago
@beew Oh no, thank you! Let me take a look!
@beew Ah! So I've found the issue, and it's two-fold, plus an extra thing I discovered:
DeprecationWarning
so nothing breaks. However, the CLI doesn't use it during the pre-validation of the language passed, so that's a bug.And also:
.cn
endpoint doesn't seem to work anymore, if you go to http://translate.google.cn
it tells you to use https://translate.google.com.hk
insteadI'll work on those fixes.
In the meantime, here are workarounds:
gtts-cli '你好' --tld com.hk --lang zh-CN --output 你好.mp3
Or simply, if google.com
is available in your location:
gtts-cli '你好' --lang zh-CN --output 你好.mp3
Fixed in gTTS 2.3.2!
Prerequisites
pip install --upgrade gTTS
)I ran one of the examples in the documentation (Chinese) https://gtts.readthedocs.io/en/latest/cli.html#examples
The output was
To check that zh-cn is supported
But the English and French examples worked, also all pytest tests were passed.
Environment