How to have Microsoft Read Aloud read alternative text
I am using Read Aloud for my online course and it is not reading some words properly. For instance, when reading the text n:g=n:g, Read Aloud reads "n g equals n g" where we would prefer it read "n to g equal n to g". I have tried using aria properties such as
<span aria-label="n to g equals n to g"><span aria-hidden="true">n:g=n:g</span></span>
but with no success. I know an appropriate screen reader, such as JAWS, would be more appropriate, we are required to have our clients use Read Aloud because it does not require them to download or purchase addition programs.
Your help is appreciated.
Solution 1:
I make some tests and find that Edge Read Aloud won't read aria-label
. I think that's by design, and we can't change it by code. You can provide feedback about this issue to Edge team by pressing Alt+Shift+I in Edge.
As a workaround, you can use the free screenreader NVDA. I've tested and it can read the value in aria-label
. Besides, if you want the aria-label
to be read, you'll have to add the role attribute to the <span>
. You can also refer to this doc and this blog for detailed information about ARIA guidelines.