Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.85k stars 1.84k forks source link

The problem about phoneme (SSML)don't work in zh_TW #1638

Closed Lucien20000118 closed 1 year ago

Lucien20000118 commented 2 years ago

In my case, I want to produce audio but there are too much same word have different pronounce. I'm trying to use phoneme to specify the pronunciation in zh-TW. But use <phoneme alphabet="sapi" ph="he 1"> 喝 </phoneme>, it will print out error. Does it support Mandarin?

jhakulin commented 2 years ago

@yulin-li could you please comment on this issue?

yulin-li commented 2 years ago

@jiajzhan could you help on this?

jiajzhan commented 2 years ago

@Lucien20000118 Zh-TW does not support pinyin, should use 'Bopomofo' phones, pls refer to this page: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-ssml-phonetic-sets#zh-tw