You are here: Reference > CSS > properties > voice-family

voice-family property

Browser support:
Specifies the type of voice to use as speak control.
JavaScript page for this property: voiceFamily. You can find other example(s) there.

Possible values:

 One of the following values: 
 This value can be used arbitrary times (use the , character to separate them) 
 Values in this order (use the space character to separate them): 
1.
 One of the following values: 
user specific voice
 Values in this order (use the space character to separate them): 
1.
 One of the following values: 
child
old
young
possible but not necessary; left to personal choice
2.
 One of the following values: 
female
male
neutral
2.
voice characteristic (positive integer) possible but not necessary; left to personal choice
inherit

Description of values:

child
Child voice.
female
Female voice.
inherit
Takes the value of this property from the computed style of the parent element.
male
Male voice.
neutral
Neutral voice.
old
Old voice.
user specific voice
String that identifies a specific voice on the user's system.
voice characteristic (positive integer)
Integer that indicates the number of the voice characteristic in the order of the given generic-voice.
young
Young voice.
Default: young male 0.

Example HTML code 1:

This example illustrates the use of the voice-family property:
<head>
    <style>
        .example  {
            voice-family: "Louis Amstrong", male;
        }
    </style>
</head>
<body>
    <div class="example">What a wonderful world</div>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content