CSS - speech-rate


Advertisements


Description

The speech-rate property is used to declare the rate at which text is spoken.

Possible Values

  • number − Define the average number of words spoken per minute.

  • x-slow − Equivalent to 80 words per minute.

  • slow − Equivalent to 120 words per minute.

  • medium − Equivalent to 180-200 words per minute.

  • fast − Equivalent to 300 words per minute.

  • x-fast − Equivalent to 500 words per minute.

  • faster − Adds 40 words per minute to the current value of speech-rate.

  • slower − Subtracts 40 words per minute to the current value of speech-rate.

DOM Syntax

object.style.speechRate = "medium";

Applies to

All the HTML elements.

Example

Here is the example −

<style type="text/css">
   <!--
   em {speech-rate: slower;}
   div.legalese {speech-rate: fast;}
   h1 {speech-rate: 90;}
   -->
</style>

For more detail please look into CSS Aural Media.



Advertisements