3.59 voice
Element type |
voice |
Attributes |
age | category | gender | name | variant |
Parents |
audio | choice | emphasis | enumerate | menu | paragraph | prompt | prosody | sentence | voice |
Children |
PCDATA | audio | break | enumerate | mark | paragraph | phoneme | prosody | say-as | sentence | value | voice |
Description |
Causes the text-to-speech processor to use a different speaking voice for rendering the contained markup. |
DTD
<!ELEMENT voice (%allowed-within-sentence; | %structure;)* > <!ATTLIST voice gender (male | female | neutral) #IMPLIED age %integer; #IMPLIED category (child | teenager | adult | elder) #IMPLIED variant %integer; #IMPLIED name CDATA #IMPLIED >
Language model
Attributes
-
age : integer
The age of the synthetic speaker in years.
-
gender : (male | female | neutral)
The gender of the synthesized voice.
-
name : voice-names
Indicates that a platform-specific named speaker should be used.
-
variant : integer
Enables a particular platform-specific speech synthesis variant.
Children
-
audible and tts content
To be rendered with the parameters of the voice element.
Examples
Example 3-70 Rendering text-to-speech with specific voice personae
<?xml version="1.0" encoding="iso-8859-1"?> <vxml version="2.0"> <form id="test"> <block> <prompt> <voice gender="male">This is a male voice.</voice> <voice gender="female">This is a female voice.</voice> <voice name="bob">This is how Bob speaks.</voice> </prompt> </block> </form> </vxml>