3.59. voice

Element typevoice
Attributesage | category | gender | name | variant
Parentsaudio | choice | emphasis | enumerate | menu | paragraph | prompt | prosody | sentence | voice
ChildrenPCDATA | audio | break | enumerate | mark | paragraph | phoneme | prosody | say-as | sentence | value | voice
DescriptionCauses 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>

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.207.44