I noticed that if we make a Chinese translation request via the official translate page, e.g.:
https://translate.google.com/?sl=zh-CN&tl=en&text=%E4%B8%80%E5%80%8B%E5%AF%A6%E9%A9%97&op=translate
in the Chinese textbox, the pinyin of the text will show up. Does anyone know if there's an API which I can call to get that pinyin from Chinese text?
I've tried the translate API, and it doesn't seem to be part of the response.
Hi @tshmak,
Welcome to Google Cloud Community!
You're right, while Google Translate's website shows pinyin for Chinese input, it isn't directly available through their official Translate API. However, you can achieve this by using a combination of libraries and APIs.
Here are some different options you could explore:
Additional considerations:
I hope the above information is helpful.