<voice>
Description
Sets the voice to be used.
Syntax
<voice
xml:lang = ”locale”
gender = ”male” | ”female” | “neutral”
age = “integer”
variant = “integer”
name = “name” >
child elements
</voice>
|
Attributes
Attribute
|
Description
|
xml:lang
|
Language of the voice. optional field
|
gender
|
Gender of the voice. optional field
|
age
|
Age of the voice. optional field
|
variant
|
Other vocal characteristics. optional field
|
name
|
Name of the voice. optional field
|
Parent
<audio>, <emphasis>, <p>, <prosody>, <s>, <speak>, <voice>
Children
<audio>, <break>, <emphasis>, <mark>, <p>, <phoneme>, <prosody>, <say-as>, <sub>, <s>, <voice>, #TEXT, #CDATA-SECTION
Limitations/Restrictions
LumenVox supports only the xml:lang, name and gender attributes. Other attributes (age and variant) are not supported and will be ignored.
The priority of application is as follows: name > xml:lang > gender.
Please refer to the LumenVox TTS Voices article for the names of the voices that are supported by LumenVox.
Within a single SSML document/synthesis request, it is not possible to switch between voices of the TTS1 type and voices of the TTS2 family. For instance, a document that specifies the Jason voice (American English male, TTS2) cannot later use a voice element that specifies the Chris (American English male, TTS1) voice. If you were using Jason and wished to switch to Chris, you would need to do that in a separate SSML document as part of another synthesis request. Also note that if your client_property.conf file has any value other than "default" for the SYNTH_VOICE_NAME property, that family of TTS will be the only one that can be used. E.g. if Jason is specified for SYNTH_VOICE_NAME, you cannot ever switch to Chris via the SSML <voice> element.
Although each attribute individually is optional, it is an error if no attributes are specified when the voice element is used.
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">
<voice name="Rebecca"> I am a woman </voice>
<voice name="Jason"> My name is Jason </voice>
</speak>
|