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.

PeterS
已提問 5 年前檢視次數 247 次
2 個答案
1
已接受的答案

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!

已回答 5 年前
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.

PeterS
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南