Browse
 
Tools
Rss Categories

"s" Element

Reference Number: AA-01573 Views: 9578 0 Rating/ Voters

<s>

 

Description

Regards the text surrounded with tags as a sentence.


Syntax

  
  

<s

xml:lang = “locale”

  child elements

</s>

 

Attributes

        
  

Attribute

  

Description

  

xml:lang

  

Specifies the language to be used within the sentences and locale. optional field

 

Parent

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


Children

<audio>, <break>, <emphasis>, <mark>, <phoneme>, <prosody>, <say-as>, <sub>, <voice>, #TEXT, #CDATA-SECTION


Limitations/Restrictions

Regardless of the punctuation marks, it inserts a pause (466ms) at the beginning and end of the text in order to define the boundaries of a sentence.

When the specified xml:lang does not exist, the attribute will be ignored.


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">

  <p>

    <s>This is the first sentence of the paragraph.</s>

    <s>Here's another sentence.</s>

  </p>

</speak>