"break" Element

<break>

 

Description

The break element is an empty element that controls pausing or other prosodic boundaries between words. The use of the break element between any pair of words is optional. If the element is not present between words, the synthesis processor inserts a pause between phrases or sentences.

Syntax  

  

<break

time = time interval(unit: s | ms)

strength = “none” | "x-weak" | "weak" | "medium" | "strong" | "x-strong"

/> 

 

Attributes        

Attribute

Description

time

Absolute value of the pause. (ms: milliseconds, s: seconds)  optional field

strength

Relative value of the pause.

(none=0ms, x-weak=233ms, weak=466ms, medium=700ms, strong=933ms,
x-strong=1166ms)    optional field

Parent

<audio>, <emphasis>, <p>, <prosody>, <s>, <speak>, <voice>

Children

none

Limitations/Restrictions

If neither time nor strength properties are used, the default value <break strength=”medium”/> will be used.

If both time and strength are used, the time value will have the higher priority. The value of time is restricted to 0-65,535ms(0-65.535s). Any time value above 65,535ms will be set to 65,535ms using TTS2 and will work up to 120000ms using TTS2.  According to SSML standards, the minimum time value is 0ms.

Example  

<?xml version="1.0"?>

<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis"

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

         xsi:schemaLocation="http://www.w3.org/2001/10/synthesis

                   http://www.w3.org/TR/speech-synthesis/synthesis.xsd"

         xml:lang="en-US">

  Take a deep breath <break/>

  then continue. 

  Press 1 or wait for the tone. <break time="3s"/>

  I didn't hear you! <break strength="weak"/> Please repeat.

</speak>  

 


Was this article helpful?
Copyright (C) 2001-2024, Ai Software, LLC d/b/a LumenVox