<voice>

New in VoiceXML 2.0. Speech Synthesis Markup Language element that requests a change in speaking voice.

Syntax

 <voice
     gender="male"|"female"|"neutral"
     age="integer"
     variant="integer"
     name="string" 
     xml:lang="string" 
 >
   Text
 </voice>

Description

Attributes describe the preferred characteristics of the voice to speak the contained text.

Attribute Description
gender

The preferred gender. Optional.

Possible values are:

 •  male
 •  female
 •  neutral
age

Not Implemented. The preferred age. Optional.

variant

Not Implemented. A preferred variant of the other voice characteristics (for example, the second or next male child voice). Optional.

name

A platform-specific voice name to speak the contained text or a space-separated list of names ordered by decreasing preference. Currently limited to one of the following:

· jennifer--female, American English
· laurie--female, Vocalizer English
· katarina--female, RealSpeak German
· maria--female, Vocalizer Spanish
· mark--male, American English
· reed--male, Vocalizer American English

Optional (default is current value of the bevocal.voice.name property).

xml:lang

New in VoiceXML 2.0. Language and locale for the content. Optional. (default is en-US).

Errors

An error.noresource event is thrown when an invalid TTS voice is specified in the name attribute.

Usage

Parents Children
<audio>
<bevocal:whisper>
<choice>
<emphasis>
<enumerate>
<p>
<paragraph>
<prompt>
<prosody>
<s>
<sentence>
<voice>
<audio>
<break>
<emphasis>
<enumerate>
<mark>
<p>
<paragraph>
<phoneme>
<prosody>
<s>
<say-as>
<sentence>
<value>
<voice>

See Also

 •  VoiceXML 2.0 Specification: <voice>
 •  Related tags: <break>, <emphasis>, <mark>, <paragraph>, <phoneme>, <prosody>, <say-as>, <sentence>

[Show Frames]   [FIRST] [PREVIOUS] [NEXT]
BeVocal, Inc. Café Home | Developer Agreement | Privacy Policy | Site Map | Terms & Conditions
Part No. 520-0001-02 | © 1999-2007, BeVocal, Inc. All rights reserved | 1.877.33.VOCAL