Adding a pause
<break>
This tag is supported by generative, long-form, neural, and standard TTS formats.
To add a pause to your text, use the <break> tag. You can
set a pause based on strength (equivalent to the pause after a
comma, a sentence, or a paragraph), or you can set it to a
specific length of time in seconds or milliseconds. If you don't
specify an attribute to determine the pause length, Amazon Polly uses
the default, which is <break
strength="medium"/>
, which adds a pause the length
of a pause after a comma.
strength
attribute values:
-
none
: No pause. Usenone
to remove a normally occurring pause, such as after a period. -
x-weak
: Has the same strength asnone
, no pause. -
weak
: Sets a pause of the same duration as the pause after a comma. -
medium
: Has the same strength asweak
. -
strong
: Sets a pause of the same duration as the pause after a sentence. -
x-strong
: Sets a pause of the same duration as the pause after a paragraph.
time
attribute values:
-
: The duration of the pause, in seconds. The maximum duration is[number]
s10s
. -
: The duration of the pause, in milliseconds. The maximum duration is[number]
ms10000ms
.
For example:
<speak>
Mary had a little lamb <break time="3s"/>Whose fleece was white as snow.
</speak>
If you don't use an attribute with the break
tag,
the result varies depending on text:
-
If there is no other punctuation next to the
break
tag, it creates a<break strength="medium"/>
(comma-length pause). -
If the tag is next to a comma, it upgrades the tag to a
<break strength="strong"/>
(sentence-length pause). -
If the tag is next to a period, it upgrades the tag to
<break strength="x-strong"/>
(paragraph-length pause).