Resolving Pause Issues in Azure TTS with zh-CN-YunxiNeural Voice Pack

santoshkc 15,600 Reputation points Microsoft External Staff Moderator
2024-08-01T11:44:01.6166667+00:00

How can I improve the pause issues when using the zh-CN-YunxiNeural voice pack in Azure Text-to-Speech (TTS)?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. santoshkc 15,600 Reputation points Microsoft External Staff Moderator
    2024-08-01T11:48:08.9933333+00:00

    Greetings!

    When using the Azure TTS service with the zh-CN-YunxiNeural voice pack, you may encounter unwanted pauses in the speech output. To address this issue, you can try adjusting the prunebreak parameter in the Speech Synthesis Markup Language (SSML). This parameter helps control the pauses in the synthesized speech. Alternatively, you can consider using the zh-CN-YunxiLTSNeural voice pack, which might offer better performance regarding pause handling.

    To adjust the prunebreak parameter, you can include it in your SSML input like this:

    
    <speak>
    
        <voice name="zh-CN-YunxiNeural">
    
            <prosody prunebreak="medium">Your text here</prosody>
    
        </voice>
    
    </speak>
    
    

    Experiment with different values for prunebreak to find the optimal setting for your needs.

    If these steps do not resolve the issue, further assistance from Azure support may be required.

    Resources:

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    Please do not forget to "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.