style.voiceFamily (Property)

Part of the aural style control suite that defines which one of an available set of predefined voices is used to speak the text.

Availability:

CSS level - 2
DOM level - 2
Property/method value type:String primitive
JavaScript syntax:nonemyStyle.voiceFamily
CSS syntax:voice-family: aFamilyName ...
Argument list:aFamilyNameA list of voice family names

Most platforms that support spoken text will provide the facility to speak in a variety of alternative voices. This is somewhat similar to text being displayed on different fonts.

However, the available voices are not likely to be platform-independent.

Generic and portable family names have not yet been defined.

You can stack these in the same way that fonts are defined using a left to right precedence rule. The first matching voice family will be used for the spoken text.

Warnings:

See also:Aural style sheets, style.fontFamily