Skip to content

Notify Screenreader Users When Inline Suggestions Or Decorations Available #130565

Closed

Description

This is a follow up to the feedback given in #129677:
Screenreader users are currently not being informed if there are inline suggestions available.

They have to check explicitly if there are inline suggestions available.

We should explore a push-based approach.

However, if there is almost always an inline suggestion (as it is the case with Copilot), too many notifications might get spammy very quickly.


A solution here might also be applied to diagnostics and quick fixes.

Activity

  1. added
    accessibility
    on Aug 11, 2021
  2. isidorn commented on Aug 11, 2021

    @isidorn

    In general we need a more powerful hidden TextEdit field to make this happen (to make the editor content more rich accessibility wise). I have tried to make this happen in the past, but was unable due to limited API of the contentEditable. More details here: #97154 (comment)

    I think this is something we will need in general, however I am not sure if it would be possible to have this with the current DOM apis.


    In case that is not possible than we would need a more specific solution for this particular case (like the status bar updating, or a quick announcement)

    fyi Florian Beijers (@zersiax)

  3. zersiax commented on Aug 11, 2021

    @zersiax

    In case that is not possible than we would need a more specific solution for this particular case (like the status bar updating, or a quick announcement)

    The status bar updating doesn't ping the screenreader afaik. So that wouldn't really help much. What do you mean by a quick announcement exactly?

  4. isidorn commented on Aug 11, 2021

    @isidorn

    Florian Beijers (@zersiax) that we aria live announce whenever there is an inline suggestion. Though this might be too noisy...

  5. zersiax commented on Aug 11, 2021

    @zersiax

    Hmm ... mostly out of curiosity, would the same not work for other ornaments? We'd probably need a preference section to dial in what a person wants aria-live-announced at any given point, but it feels to me that if we can detect suggestions and aria announce them, could we not do similar things for the others, granting that this would be quite noisy if you have it on all at once?

  6. hediet commented on Aug 12, 2021

    @hediet
    MemberAuthor

    What would the aria-live-announcement look like? Would it say something like "(Inline) Suggestions available"? Or would it also include the suggestion text?

    Maybe we could also explore playing a super short non-speech sound that could possibly be played in parallel to any text speech output?

  7. isidorn commented on Aug 12, 2021

    @isidorn

    Since this would be noisy I think it should be as short as possible and not include suggestion text. So that the user is notified but if the user wants to know more Cmd + K, Cmd + I is the way to go. So something like
    suggestions, Cmd + K, Cmd + I

    I like the idea of super short non-speech sound, even though we try not to do this in general and we leave this to screen readers. We try to provide the context, and we leave the announcing and producing sounds to the screen reader. However I am open for exploring this option.

  8. isidorn commented on Aug 12, 2021

    @isidorn

    joanmarie Leonard de Ruijter (@LeonarddeR) is there some way to make audio cues to the screen reader through aria attributes? In this particular case we would like a short "notification sound" to be sent to the user. And there are some other use cases where this could be helpful. Thanks

  9. joanmarie commented on Aug 12, 2021

    @joanmarie

    Isidor Nikolic (@isidorn) Not in Orca. But could VSCode itself play sounds? (i.e. why does this need to be done through the screen readers?)

  10. hediet commented on Aug 12, 2021

    @hediet
    MemberAuthor

    i.e. why does this need to be done through the screen readers?

    I think it would be nice if various standardized notification sounds were a feature of screen readers:

    • Standardization would allow to have recognizable sounds
    • Those sounds could be customized system-wide (in terms of volume, speed, pitch etc.)
    • VS Code currently does not play any sound by itself, I guess we would need to add a lot of dependencies to play sounds just for this use-case
  11. LeonarddeR commented on Aug 12, 2021

    @LeonarddeR

    Agreed with joanmarie. Probably best to do this in Code itself. I believe they planned something like that for full Visual Studio as well.

  12. Neurrone commented on Aug 12, 2021

    @Neurrone

    Agreed that sounds would be the best way to fix this, although I recognize that's more effort than adding an aria alert.

    This is for instance, how NVDA notifies users that there are search results available when typing in the start menu. Super short sound that can be easily understood parallel to speech.

  13. isidorn commented on Aug 12, 2021

    @isidorn

    Henning Dieterichs (@hediet) nicely outlined what are the benefits that this is handled on the screen reader side. Apart from that we would need a different dependency based on platform, and for me it feels like a natural separation between screen reader and app: screen reader is in charge of producing audio (whether it is speech or sounds). Though this might be just my interpretation.

    I have also emailed Dante from Visual Studio, so we hear what Visual Studio is doing.

  14. 69 remaining items

  15. isidorn commented on Jan 20, 2022

    @isidorn

    Great feedback all, thanks.
    Florian Beijers (@zersiax) agree 100% with your suggestion. That is what we plan to do

    Jared Stofflett (@jareds) I like your point to keep the volume control to the OS application volume level. This is built in on Win, but there are apps on MacOs that control this. Anyways we can add volume control if needed only later. Setting for each sound might be a bit too fine grained for me, let's revisit this once we tune the folded sound which is too triggered too often now.

    devinprater I am not sure. Let's ping some nvda people so they are in the loop that we are adding sounds Leonard de Ruijter (@LeonarddeR)

  16. zersiax commented on Jan 20, 2022

    @zersiax

    devinprater the sounds are extremely brief at present so I'm not sure what you mean by "drawn out". If you mean "drowned out" the suggestion makes no sense to me given NVDA's audioducking would make the sounds quieter, not louder :)

  17. devinprater commented on Jan 20, 2022

    @devinprater
  18. gino-scarpino commented on Jan 20, 2022

    @gino-scarpino
  19. devinprater commented on Jan 20, 2022

    @devinprater
  20. miguelsolorio commented on Jan 21, 2022

    @miguelsolorio
    Contributor

    Isidor Nikolic (@isidorn) I know I'm not the primary user for these sounds, but I do love enabling theses. Are there any plans to customize what sounds a user wants/does not want? For example, I've love to turn off the "folding" noises for myself but keep the rest.

  21. gino-scarpino commented on Jan 21, 2022

    @gino-scarpino
  22. isidorn commented on Jan 22, 2022

    @isidorn

    @misolori we can introduce more granular control later if we feel like there are user looking for this. This can just be a new setting value for audioCues (e.g. json bag). For your example: folding noises are too common and we are working on changing that now - to only play the sound when folded, not foldable.

  23. LeonarddeR commented on Jan 25, 2022

    @LeonarddeR

    devinprater wrote:

    I wonder if NVDA ducking can remedy some of the sound being drown out?

    Actually when NVDA ducking is enabled, the volume of sounds coming from VS Code is lowered. This also applies to JAWS and Narrator ducking I suppose.

  24. MarcoZehe commented on Jan 25, 2022

    @MarcoZehe
    Contributor

    I wish desktop screen readers were smarter about what they should duck and what not. For example, even with audio ducking enabled, it doesn't make sense to duck system notification sounds, or even the sounds the scren reader itself plays occasionally. On iOS, this works great, but on both Windows and Mac, either everything is ducked, or nothing. So if screen readers were smarter about that, that setting would not even matter for kind of system notification sounds like the one VS Code is producing now.

  25. zersiax commented on Jan 25, 2022

    @zersiax

    Marco Zehe (@MarcoZehe) not ...entirely accurate, I believe. Pretty sure VS Code uses its own thing to play sounds, not so much the same process that , say, the Windows Sound Scheme sounds use. VS IDE does try to hook into that same system for build complete and such, I think.
    As for system notification noises, I can see cases for both ducking and not ducking notification sounds, e.. if you were to receive a whole bunch of them in rapid succession I can see that being annoying if you're trying to hear your screen reader, particularly if you have audio processing problems. I think the only way for everyone to have their cake and eat it too is to just make ducking configurable on a per-app basis, stick it in a profile or some such. I know of no screen reader that does this, though.

  26. isidorn commented on Jan 27, 2022

    @isidorn

    Since we have introduced sounds for breakpoint, errors and folded region I will close this issue.
    Here's a follow up issue for next milestone where we plan to explore introducing more sounds
    #141635

    We are really looking forward to feedback and for ideas for other existing features that might benefit from the use of sound.

    Thanks all!

  27. locked and limited conversation to collaborators on Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilityfeature-requeston-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions