The speech properties provide specify how punctuation and numerals are spoken.

Two properties are used to provide this effect, they are speak-punctuation and speak-numeral.

Speak punctuation property

The speak-punctuation property contains following information:

  1. value: code, none, or inherit;
  2. initial: none;
  3. applies to: all elements;
  4. inherited: yes;
  5. percentages: N/A;
  6. media: aural;
  7. computed value: as specified.

The value code orders punctuations to be spoken literally while the value none will prevent rendering the punctuations and instead will try to render the content naturally with pauses and other means replacing the punctuation signs.

Speak numeral property

The speak-numeral property contains following information:

  1. value: digits, continuous or inherit;
  2. initial: continuous;
  3. applies to: all elements;
  4. inherited: yes;
  5. percentages: N/A;
  6. media: aural;
  7. computed value: as specified.

The value digits ensures that the numbers are spoken as individual digits, i.e. "35" will be "Three Five", while the value continuous ensures that the numbers are spoken as a full number, i.e. "35" will be "Thirty five".

Example

CSS speech properties example:

 

›› go to examples ››