By using AWS re:Post, you agree to the Terms of Use

Chinese tone support

0

I'm trying out the Mandarin Chinese voice of Polly, but can't seem to find a way to tell it which Chinese tones to use. There are several words in Chinese that can be pronounced in multiple ways (i.e. 当天 → dàng tiān/dāng tiān), so it would be convenient if Polly could support pinyin input and not just hanzi.

I tried using SSML and IPA tone letters, but they seem to be ignored by Polly. As it is now, Polly will sometimes use the wrong tones and I haven't been able to find a workaround.

If there is some workaround for this, or plans for supporting tone information, please let me know.

asked 3 years ago17 views
2 Answers
0
Accepted Answer

Hi PeterS,

The Chinese voice Zhiyu supports Pinyin in SSML tags. Please use x-amazon-pinyin for the alphabet field and use number 0 to 4 for tones. For your example:

<speak> <phoneme alphabet="x-amazon-pinyin" ph="dang1-tian1">当天</phoneme> <phoneme alphabet="x-amazon-pinyin" ph="dang4-tian1">当天</phoneme> </speak>

Thank you for reaching out to us!

answered 3 years ago
0

Ah, perfect, that changes everything. Thank you!

Btw, I can't seem to find this anywhere in the documentation. It might be worth adding to the documentation in case there are others looking for this feature as well.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions