| VoiceXML 2.1 Development Guide | Home | Frameset Home |
| xml:lang | Data Type: NMTOKEN | Default: Optional (en-US) |
| The xml:lang attribute specifies the language and locale information of the VoiceXML document. If omitted, it will inherit this value from the document hierarchy, or ultimately from the platform default, which equates to 'en-US'. The language and locale information is not case-sensitive. For VoiceXML language options and mappings, see ASR Languages and TTS Languages. | ||
| <?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1"> <meta name="author" content="Matthew Henry"/> <meta name="copyright" content="2005 voxeo corporation"/> <meta name="maintainer" content="YOUR_EMAIL@HERE.COM"/> <form id="F_1"> <block> <prompt> <sentence xml:lang="en-US"> Brother John saw visions of God. </sentence> <sentence xml:lang="en-US"> So they put him in chains, for acting too odd. </sentence> <sentence xml:lang="en-US"> As the crowd shouted 'off with his head'.</sentence> <sentence xml:lang="en-US"> The priest said 'have mercy, lets burn him instead' </sentence> </prompt> </block> </form> </vxml> |
| ACCOUNT LOGIN |
| ANNOTATIONS: EXISTING POSTS |
vibhugarg
|
|
| Sample code line
<sentence xml:lang="en-US""> to be modified to remove the extra " at the end of en-US |
|
MattHenry
|
|
|
Hi there, and thanks for catching another of my typos. I'll have this fixed and updated very shortly. Regards, ~Matt |
|
bronson
|
|
| What does it mean to read something out in sentence structure or paragraph structure? What is the difference between them? The documentation doesn't make this clear. | |
voxeojeff
|
|
| Hello bronson,
The <p> (paragraph) and <s> (sentence) elements are primarily used for structuring purposes, and are completely optional. They do not really make a difference as far as TTS read-back is concerned. More information on these elements can be found by visiting the SSML specification: http://www.w3.org/TR/2003/CR-speech-synthesis-20031218/#S3.1.7 Hope this helps, Jeff |