// Add 200ms between sentences
voice.silence({ type: 'Sentenceboundary', value: '200ms' });
// Set exact 500ms pause at commas
voice.silence({ type: 'Comma-exact', value: '500ms' });
https://docs.microsoft.com/azure/cognitive-services/speech-service/speech-synthesis-markup#add-silence Silence Element Documentation
Types of silence insertion positions in SSML.
Specifies where and how to add silence in the speech output. Unlike break elements, silence elements provide more precise control over placement and can work with sentence boundaries and punctuation.
Position types:
Leading
: Adds extra silence at the beginning of text (additive)Leading-exact
: Sets exact silence duration at the beginning (replaces natural silence)Tailing
: Adds extra silence at the end of text (additive)Tailing-exact
: Sets exact silence duration at the end (replaces natural silence)Sentenceboundary
: Adds extra silence between sentences (additive)Sentenceboundary-exact
: Sets exact silence duration between sentences (replaces natural silence)Comma-exact
: Sets exact silence at commas (half/full-width)Semicolon-exact
: Sets exact silence at semicolons (half/full-width)Enumerationcomma-exact
: Sets exact silence at enumeration commas (full-width, used in CJK languages)