accessibility - How can I replace the screen reader audio with a prerecorded audio file? -


i work on multilingual website contain many languages not written, , wonder if there ways working people using screen readers? possible give text attribute make screen reader play prerecorded sound instead of trying read text itself?

the whole menu system translated languages not supported screen readers.

the 2 popular screen readers jaws , nvda. can see what languages jaws supports, 28 in total. nvda supports 43 languages (i couldn't find list).

i wonder if there ways working people using screen readers

there few things come mind:

  • declare language of page via <body lang="">, if screen reader happens know how interpret it, uses language
  • put links common language translations near top of page if lands on random page search engine hit, can change languages quickly.

is possible give text attribute make screen reader play prerecorded sound instead of trying read text itself?

the lang attribute makes screen reader switch language if understands it. can provide links audio files listened to, little cautious providing own audio player. not audio players accessible, 2 common issues these controls not labeled , cause focus trap.

unlabeled controls make assistive technology "unlabeled" or similar, cannot tell buttons apart each other. focus trap effects people use keyboard navigate page, using tab key, , instead of getting out of audio player, goes first element of audio player again.

from comments

how can make screen reader play these files instead of trying read text.

the thing can use aria hide content via aria-hidden='true' attribute. can check my answer aria-hidden more details. like:

<article aria-hidden="true">  <h1>some cool language</h1>  <p>blah blah blah</p>  <section aria-hidden="false">   <h2>audio of language</h2>   <p>below audio sample of ____. blah blah blah</p>   <p class="offscreen"><!-- may idea put additional    info people using assistive tech --></p>   <p>audio stuff</p>  </section> <article> 

css

.offscreen{  position: absolute;  top: 0;  left: -999px;  } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -