XML technologies / CSS / Advanced websites with CSS / CSS property reference / voice-family
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
The property voice-family describes the voice used to read a page’s contents in aural browsers. voice-family is thus the aural counterpart of font-family.
Inherited: yes
See also: pitch, pitch-range, richness, stress, volume
Values
Predefined voice files, depending on the browser settings, or generic voice names:
malefemalechild
As with font-family generic voice names are always placed at the end of the declaration.
Default value: depends on the browser
Compatibility
CSS version: 2
Not supported by any current visual browser.
Example
The following style rule gives elements of the class bedrohlich a voice using the voice file igor or, if it is unavailable on the user’s system, another available male voice:
.bedrohlich {
voice-family: igor, male;
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg