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:

  • male

  • female

  • child

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;
}

  

 

 

 

back to top