![]() |
|
The voice-family property sets the voice that you want to use for spoken text. It works a bit like the font-family property. You can specify a single voice family, a list of alternative voice families separated by commas or a generic voice family. Here are some examples: h1 { voice-family: announcer, actor, comedian} body {voice-family: announcer, male;} If the browser can't use the first voice family, it tries the second and so on until it finds one that works or runs out of voice families and uses the browser's default voice. The generic voice family names are: male, female or child. As with fonts, it is a good idea to specify a generic family name in case the system doesn't have any of your voices. It probably won't ¾ yet. If you use a voice family that consists of more than one word, put quotation marks round the name: {voice-family: "Ann Gilliver;"} You can use single or double quotation marks. The CSS specification says that the browser is supposed to provide a number of different voices by default. It doesn't actually define what these voices should be. The browser should also be able to load and use additional voices, like the way it handles downloaded fonts. |
More information voice-family |