"p" Element

<p>

 

Description

Treats the text surrounded by this tag as a paragraph.

Syntax  

<p

  xml:lang = โ€œlocaleโ€>

  child elements

</p>

Attributes        

AttributeDescription
xml:langSpecifies the language and locale to be used for the paragraph. optional field

Parent

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

Children

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

Limitations/Restrictions

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

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>

 



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