How can I use the phoneme in zh-TW?

LucienMJ 1 Reputation point
2022-09-04T10:13:42.15+00:00

Thank you for watching this issue.
I'm trying to solve the same word has different pronounces in zh-TW.
I use <phoneme alphabet="sapi" ph=" "></phoneme> , but it returns error.
I refer this page.

https://learn.microsoft.com/zh-tw/azure/cognitive-services/speech-service/speech-ssml-phonetic-sets#zh-tw

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,343 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,841 Reputation points Microsoft Employee
    2022-09-05T09:30:48.973+00:00

    @LucienMJ Apologies for any issues with the usage of words in the below example, I have used this only as a context to check if phoneme works with zh-TW as I am not a native speaker of chinese(taiwan)

    I have used this an example to set phoneme for one of the words from the studio and it seems to work.

    <phoneme alphabet="sapi" ph="ㄧㄚ">家</phoneme>

    My SSML was set as the following:

    <speak xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="http://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" version="1.0" xml:lang="zh-TW"><voice name="zh-TW-HsiaoChenNeural">客<phoneme alphabet="sapi" ph="ㄧㄚ">家</phoneme>語;</voice></speak>

    237787-image.png

    Have you tried to use the studio and set the phoneme for zh-TW?

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.