Custom external lexcion does not work when calling TTS speech synthesis service using Java SDK

xin chen 0 Reputation points
2024-07-19T03:11:48.4666667+00:00

We don't want the * sign to sound, so we set up a custom lexicon, but the synthesized speech doesn't seem to be affected by the lexicon.

<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-CN">
    <voice name="zh-CN-XiaoxiaoNeural" style="chat" rate="5%%">
        <lexicon uri="https://guiyaai.blob.core.windows.net/tts-resources/azure_custom_lexicon.xml"/>
         **测试**##BTW和
    </voice>
</speak>
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,548 questions
{count} votes