[Bcc someone who might know some of this stuff]
[changed the subject to english to see if it gets more replies. Y porque falo portunhol, mas muito mal]
I had a bit more of a look at this for JAWS - with any luck people might be able to tell us about other screen readers. It might be difficultto change voices, but I presume it is not impossible.
It is possible to write and share fairly generically applicable JAWS scripts that change the speech settings, based on attributes in HTML.
It would be possible to set something like data-forJAWS="...some instructions..." on elements, to trigger the scripts. It would be a bad idea to do this directly in a page, hoping that everyone has the same scripts.
There is auralCSS - styles specifically meant for speech. But they have not been properly implemented anywhere. A generic proof of concept could:
In a browser extension:
1. Look for relevant properties in stylesheets or style attributes
2. Add the rules as instructions in data-something attributes, as described above.
In a JAWS script
Look for the relevant data-attributes, and change speech parameters accordingly. Including changing back as you leave elements…
To do this properly would mean calculating the cascade rules, which means you have to calcualte specificity of all the rules you find.
document.querySelectorAll() would at least help in translating the text from stylesheets into attributes, since you don't have to calculate the selectors yourself
So doing this moderately effectively would be a mess, and perform very badly.
Hacking the relevant voice properties into the style processors of a browser, so you could use getComputedStyle directly, would reduce the cost somewhat.
13.05.2015, 01:23, "firstname.lastname@example.org" <email@example.com>:
Is there any way a screen reader synthesize multiple voices?
For example, the user’s navigation could be read with a voice and updates with another.
Right. The details are a bit more complicated, and different things apply to different screen readers.
Unfortunately the beautiful simplicity of CSS for this never worked in most systems - and the key idea of CSS, that users would be able to control styling for themselves, still hasn't been implemented even passingly well in any well-known system. So the methods for achieving what you want start out with "first, read all the documentation…"
But it is certainly possible for screen readers to change voices.
Charles McCathie Nevile - web standards - CTO Office, Yandex
firstname.lastname@example.org - - - Find more at http://yandex.com