Small pause for every sentence

Seyed Abudula 20 Reputation points
2023-07-18T17:04:19.95+00:00

I am looking for a way to add a small pause for each sentence which longer than usual. How can I set it in speech SDK?

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

Accepted answer
  1. YutongTie-MSFT 53,886 Reputation points
    2023-07-18T19:38:10.64+00:00

    Hello @Seyed Abudula

    Thanks for reaching out to us, you can use SSML to define a paragraph, a sentence, a break or a pause, or silence.

    The supported values for attributes of the break element were described previously. The following three ways all add 750 ms breaks.

    <speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
        <voice name="en-US-JennyNeural">
            Welcome <break /> to text to speech.
            Welcome <break strength="medium" /> to text to speech.
            Welcome <break time="750ms" /> to text to speech.
        </voice>
    </speak>
    
    
    

    The absolute duration of a pause in seconds (such as 2s) or milliseconds (such as 500ms). Valid values range from 0 to 5000 milliseconds. If you set a value greater than the supported maximum, the service will use 5000ms. If the time attribute is set, the strength attribute is ignored.

    I hope this helps.

    Reference - https://learn.microsoft.com/en-us/azure/ai-services/speech-service/speech-synthesis-markup-structure#add-a-break

    Regards,

    Yutong

    -Please kindly accept the answer and vote 'Yes' if you feel helpful to support the community, thanks a lot.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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