CSS - Aural Media
CSS - Aural Media
This property is used when the web document is used as a speech synthesizer. The CSS2 allows for attaching particular sound styles to particular document. This feature is mainly concerned with aural rendering of documents rather than visual rendering. Various applications for using this property include training, web access in vehicles, medical documentation, home entertainment, etc.
This property actually creates a 3D physical space (sound surrounding) and a temporal space (specifying sound before, during and after sounds). The quality of speech synthesizer can be given by this property with voice type, frequency and inflection.
Example:
<html>
<head>
<style type = "text/css">
h1, h2, h3, h4, h5, h6 {
voice-family: paul;
stress: 20;
richness: 90;
cue-before: url("audio1.au");
}
p {
azimuth:center-left;
}
</style>
</head>
<body>
<h1>CSS Advanced Tutorials</h1>
<h2>CSS Advanced Tutorials</h2>
<h3>CSS Advanced Tutorials</h3>
<h4>CSS Advanced Tutorials</h4>
<h5>CSS Advanced Tutorials</h5>
<h6>CSS Advanced Tutorials</h6>
<p>CSS Advanced Tutorials</p>
</body>
</html>
The voice-family : paul commands the speech synthesizer to speak headers in a voice.
Various properties of aural media are as below,
The azimuth property allows when the sound arises from horizontally.
The elevation property allows when the sound arises from vertically.
The cue-after specifies when a sound to be played after speaking.
The cue-before specifies when a sound to be played before speaking.
The cue is shorthand for setting cue-before and cues-after.
The pause-after specifies a pause after speaking.
The pause-before specifies a pause to be observed before speaking.
The pause is shorthand for setting pause-before and pauses-after.
The pitch specifies the average pitch (a frequency) of the speaking voice.
The pitch-range specifies variation in average pitch.
The play-during specifies a sound to be played as a background.
The richness specifies the brightness of the speaking voice.
The speak specifies about the rendered aural text.
The speak-numeral controls how numerals are spoken.
The speak-punctuation specifies how punctuation is spoken.
The speech-rate specifies the speaking rate.
The stress specifies the height of "local peaks" for the voice.
The voice-family specifies the prioritized list of voice family names.
The volume refers about the median volume of the voice.
The azimuth property sets at the time of arriving sound horizontally. The possible values of this property includes angle, left-side, left, far-left, center-right, right, far-right, right-side, leftwards, rightwards, etc.