<break>

Controls the pausing or other prosodic boundaries between words.

Note: The <break> element must be enclosed by surrounding text when used as a child of the <audio> element.

Attributes

This section describes the attributes you can set for the <break> element.

Name

Data type

Default
size

(none | small | medium | large)

optional

strength

(none | x-weak | weak | medium | strong | x-strong)

medium

time

CDATA

optional

size

Deprecated. Use strength or time instead.

strength

This attribute is used to indicate the strength of the prosodic break in the speech output. The value "none" suppresses a prosodic break which would otherwise be inserted. The other values indicate pauses of different durations as follows:

  • x-weak: 100 milliseconds

  • weak: 200 milliseconds

  • medium: 400 milliseconds

  • strong: 700 milliseconds

  • x-strong: 1200 milliseconds

If both the strength attribute and the time attribute are specified, the time attribute supersedes the strength.

time

The time attribute specifies the duration of a pause (in seconds or milliseconds). All integer values you specify require a unit identifier: "s" for seconds or "ms" for milliseconds. If the unit identifier is not specified, the integer value is undefined.

<prompt>
To pay your credit card, press 1. <break time="3s"/> Thank you.
</prompt>

Children

None.

Parents

Sample code

<prompt>
  Let us have a moment of silence. <break strength="x-strong"/>
  Thank you.
</prompt>