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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ