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
posta 5 anni fa250 visualizzazioni
2 Risposte
1
Risposta accettata

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!

con risposta 5 anni fa
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
con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande