"speak" Root Element

<speak>

 

Description

Speak is the root element of the Speech Synthesis Markup Language (SSML).

Syntax  

  <speak 

version = “1.0”

xml:lang = “locale”

xml:base = “URI”

xmlns = “URI”

xsi:schemaLocation = “URI”

  … >

  child element

</speak>

 

Attributes        

  Attribute  Description
  version Sets the version of the SSML document. Note that since SSML 1.0 is the only version supported. For convenience, any other values supplied here will internally be forced to and processed as "1.0"   

Note that when using lexicons with TTS1, there is some limited extended support for SSML 1.0 functionality, so a value of "1.1" is also permitted here for TTS1

mandatory field

  xml:langSets the basic language of the SSML document. Language information is inherited down the document hierarchy, i.e. it has to be given only once if the whole document is in one language, and language information nests, i.e. inner attributes overwrite outer attributes.  mandatory field
  xml:baseSets the base URI of the SSML document. Relative URIs are resolved according to a base URI, which may come from a variety of sources. The base URI declaration allows authors to specify a document's base URI explicitly.   optional field
  xmlns

Specifies the SSML namespace, which should be set to "http://www.w3.org/2001/10/synthesis".   optional field

 xsi:schemaLocation Indicates the location of the SSML schema. namespace, which should be set to "http://www.w3.org/2001/10/synthesis
 http://www.w3.org/TR/speech-synthesis/synthesis.xsd".   optional field

Parent

None

Children

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

Limitations/Restrictions

 

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

... the body ...

</speak>  

 



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