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
preguntada hace 5 años250 visualizaciones
2 Respuestas
1
Respuesta aceptada

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!

respondido hace 5 años
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
respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas