files/en-us/web/css/reference/at-rules/@counter-style/speak-as/index.md
The speak-as descriptor specifies how a counter symbol constructed with a given {{cssxref('@counter-style')}} will be represented in the spoken form. For example, an author can specify a counter symbol to be either spoken as its numerical value or just represented with an audio cue.
/* Keyword values */
speak-as: auto;
speak-as: bullets;
speak-as: numbers;
speak-as: words;
speak-as: spell-out;
/* @counter-style name value */
speak-as: <counter-style-name>;
auto
speak-as is specified as auto, then the effective value of speak-as will be determined based on the value of the {{cssxref("@counter-style/system", "system")}} descriptor:
system is alphabetic, the effective value of speak-as will be spell-out.system is cyclic, the effective value of speak-as will be bullets.system is extends, the value of speak-as will be the same as if speak-as: auto is specified on the extended style.auto has the same effect as specifying speak-as: numbers.bullets
numbers
words
spell-out
speak-as was numbers.<counter-style-name>
speak-as defaults to auto.Assistive technology support is very limited for the speak-as property. Do not rely on it to convey information critical to understanding the page's purpose.
Let's Talk About Speech CSS | CSS Tricks (2017)
{{cssinfo}}
{{csssyntax}}
In this example, the counter system is fixed with unintelligible symbols used for the visual markers. However, the speak-as descriptor is used to set the list item markers as numbers in the accessibility tree. When supported, numbers rather than visual markers will be read out by screen readers.
To experience the result of the speak-as descriptor, use assistive technology such as VoiceOver or another screen reader or view the accessibility panel in the developer tools of a browser that supports speak-as.
<ul class="list">
<li>I had one apple</li>
<li>I ate two bananas</li>
<li>I devoured three oranges</li>
<li>I am not hungry for dinner</li>
<li>But I'll have five scoops of ice cream for dessert</li>
</ul>
@counter-style speak-as-example {
system: fixed;
symbols: ;
suffix: " ";
speak-as: numbers;
}
.list {
list-style: speak-as-example;
}
{{ EmbedLiveSample('Setting_the_spoken_form_for_a_counter') }}
{{Specifications}}
{{Compat}}