Search code examples
iosobjective-cxcodegoogle-translategoogle-translation-api

Phonetic Characters in Google Translation API


I am using the Google Translation API, here is an example request to getting 'Hello' from English to Simplified Chinese:

Google Translation API - 'Hello' From English to Chinese

And as you can see this is pretty much all the data it returns:

你好

Which is not very helpful to a user who might want to be able to speak it, so does Google Translation API return any pinyin or phonetic typing so it might return that as:

Ni Hao

Thanks!


Solution

  • This isn't possible with the current API. See:

    Get Chinese Romanization from Google Translate API

    Apparently it is still an open issue that Google has not implemented into the API.