easyeffects icon indicating copy to clipboard operation
easyeffects copied to clipboard

Easy-effects accessibility with Orca

Open devinprater opened this issue 5 years ago • 28 comments

Hello, I'm a blind Linux user, and am wondering if Easy-effects could be made more accessible with Orca? I have the version from Flathub, latest stable version, running on Fedora 34 with Orca version 40.0. Steps to reproduce:

  • Turn on orca by running orca from the Alt + F2 run dialog.
  • Open Personal > Assistive Technologies from your applications or system menu, or search for Assistive Technologies.
  • Check the "Enable Assistive Technologies" checkbox in that dialog, and close it, saving or applying changes if needed.
  • Open Easy-effects.
  • You'll hear a lot of "GTK MM..." "list view" stuff.
  • Arrowing down the list view shows applications.
  • Tab to try to find effects lists. You'll hear more "GTKMM..." stuff, some switches, buttons, and tabs, but nothing about effects.
  • Also, while in Easy-effects, speech is not stopped (the speech queue isn't flushed) when tabbing or doing anything else, but everywhere else it is. If I could help in any other way, let me know. I'd love to use this, to help make sound a little better, or use BS2B to put the sound somewhere besides right in front of me, right at my ears, for a more comfortable listening experience over 8 hours per day.

devinprater avatar Sep 24 '21 14:09 devinprater

Things seem a little different here on Arch Linux. It does not seem I have an "Assistive Technologies" section. What you are using is the GNOME screen reader?

wwmm avatar Sep 24 '21 15:09 wwmm

Yes. If you're on Gnome, maybe look in the Control Center, or Control Panel.

devinprater avatar Sep 24 '21 15:09 devinprater

Orca is listed under Accessibility in KDE here in my Garuda system.

jbstep avatar Sep 24 '21 15:09 jbstep

From what I can tell what's missing here is better integration within EasyEffects itself? Orca itself is working since it's reading things out, the issue is Orca is being told to read information which is not relevant to the user.

I think this GTK doc is relevant. From what I understand better integration with Orca is kind of similar to what adding translations feels like? Is there a tool like Poedit but for accessibility/Orca?

vchernin avatar Sep 30 '21 06:09 vchernin

There is Accerciser: https://gitlab.gnome.org/GNOME/accerciser Devin Prater @.*** gemini://tilde.pink/~devinprater/

On Thu, Sep 30, 2021 at 1:38 AM Vincent Chernin @.***> wrote:

From what I can tell what's missing here is better integration within EasyEffects itself? Orca itself is working since it's reading things out, the issue is Orca is being told to read information which is not relevant to the user.

I think this GTK doc is relevant https://docs.gtk.org/gtk4/section-accessibility.html. From what I understand better integration with Orca is kind of similar to what adding translations feels like? Is there a tool like Poedit but for accessibility/Orca?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wwmm/easyeffects/issues/1168#issuecomment-930854826, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUMTTSOGLGYJFAWNTAA43TUEQAW3ANCNFSM5EWD4IGA .

devinprater avatar Sep 30 '21 13:09 devinprater

If I have time, I can install accerciser tomorrow and see what is missing.

Digitalone1 avatar Oct 04 '21 17:10 Digitalone1

Unfortunately I can't test this because I'm not able to run the speech dispatcher service.

The voice tells me there's an issue and I should check a log file under /var/log or local user directory, but there's no log related to speech-dispatcher.

When I try to start the service through systemd, it's immediately terminated. The status doesn't give me useful information:

Starting Speech-Dispatcher an high-level device independent layer for speech synthesis....
speechd: Speech Dispatcher 0.10.2 starting
speech-dispatcherd.service: Control process exited, code=exited, status=1/FAILURE
speech-dispatcherd.service: Failed with result 'exit-code'.
Failed to start Speech-Dispatcher an high-level device independent layer for speech synthesis..

Accerciser gives only information about which service is supported by the application. Not much help about how it has to be implemented.

Digitalone1 avatar Oct 05 '21 09:10 Digitalone1

@devinprater do you have any hint to resolve this issue I have with speech dispatcher? I don't have any clue how to make it work.

Digitalone1 avatar Oct 06 '21 14:10 Digitalone1

Make sure a speech engine, like espeak or rhvoice is installed. Did you install orca? If so it should have installed a speech engine, but if not try installing one. Devin Prater @.*** gemini://tilde.pink/~devinprater/

On Wed, Oct 6, 2021 at 9:27 AM Giusy Digital @.***> wrote:

@devinprater https://github.com/devinprater do you have any hint to resolve this issue I have with speech dispatcher? I don't have any clue how to make it work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wwmm/easyeffects/issues/1168#issuecomment-936336079, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUMTTTGKCUJIHDARVAXTD3UFRMDHANCNFSM5EWD4IGA .

devinprater avatar Oct 06 '21 15:10 devinprater

@devinprater Ok, espeak was missing.

I can now listen and understand the issue. I hope to resolve it, but GTK documentation is not of much help since it does not give any example on how to implement a good accessible structure.

I will try to make some attempts playing with ui xml files.

Digitalone1 avatar Oct 06 '21 20:10 Digitalone1

Okay, thanks. I'm glad that worked. I'm sorry the documentation isn't much help.

On Wed, Oct 6, 2021 at 3:11 PM Giusy Digital @.***> wrote:

@devinprater https://github.com/devinprater Ok, espeak was missing.

I can now listen and understand the issue. I hope to resolve it, but GTK documentation is not of much help since it does not give any example on how to implement a good accessible structure.

I will try to make some attempts playing with ui xml files.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wwmm/easyeffects/issues/1168#issuecomment-937041286, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUMTTXZNIXOH36ML6CIGCTUFSUNLANCNFSM5EWD4IGA .

devinprater avatar Oct 06 '21 21:10 devinprater

@devinprater I managed to find a way to remove the "GTKMM__" prefix from the voice specifying the widget title. Should be better with this fix, but it will be long to be implemented because it has to be specified for every widget.

@wwmm do you have any clue if there's a way to specify a Gtk::Accessible::Property inside the xml builder? It seems there's no specific property, so it has to be done inside the code.

I already did it for spinbuttons and scales, but if there's a way to do it in the builder, would be better?

Digitalone1 avatar Oct 08 '21 20:10 Digitalone1

do you have any clue if there's a way to specify a Gtk::Accessible::Property inside the xml builder?

I think I saw this being done in one of the gtk examples they provide in their source. I will try to remember which one.

wwmm avatar Oct 08 '21 20:10 wwmm

but if there's a way to do it in the builder, would be better?

Yes. It is a lot easier to reuse interface code that is defined in a xml than the ones written in C or C++.

wwmm avatar Oct 08 '21 20:10 wwmm

I think it is like this https://gitlab.gnome.org/GNOME/gtk/-/blob/master/testsuite/gtk/ui/a11y2.ui

wwmm avatar Oct 08 '21 20:10 wwmm

I think it is like this https://gitlab.gnome.org/GNOME/gtk/-/blob/master/testsuite/gtk/ui/a11y2.ui

Nice, thanks.

Digitalone1 avatar Oct 08 '21 21:10 Digitalone1

So I made a first test. Setting the accessible label property is reducing the "GTKMM" spelling, but not all widgets are working as expected.

What works:

  • spinbuttons and scales are good: orca reproduces the label and the widget value
  • simple buttons are good
  • checkbuttons seems to work fine

What is not working

  • for toggle buttons the label is reproduced, but there's no way to inform the user if the state is checked or unchecked - I tried also to modify the property on changes, but it's not working - I don't know if it's an issue related to orca or GTK4
  • buttons that show a popover can't reproduce the label, they are presented and "GTK double button" - this should be an orca issue
  • buttons with images are not well reproduced because the voice says "GTK image" and not always the label is reproduced - maybe a workaround could be making an image object as child and make it as "presentation role" so it should be ignored

I didn't test combobox, lists and other widgets completely, but I don't think they are well reproduced. For now I just made a first test implementation for application window ui and the maximizer which is one of the easiest plugin to deal with.

This needs lots of works and at last I think it won't fully work because GTK or orca miss something. At least if we provide the right information, it's better than nothing, hoping GTK will fix issue in the future.

@devinprater Could you test the master branch? Which plugins are you using now? We can help you to find a better preset if you need.

Digitalone1 avatar Oct 09 '21 18:10 Digitalone1

Since they're a Flathub user I made a test build PR: https://github.com/flathub/com.github.wwmm.easyeffects/pull/31

@devinprater You can install the test build there by entering the command buildbot will give. You can run the test build with flatpak run com.github.wwmm.easyeffects//test

vchernin avatar Oct 09 '21 18:10 vchernin

@vchernin @wwmm has not merged it yet to master. The test is on my repository.

Digitalone1 avatar Oct 09 '21 18:10 Digitalone1

The test is on my repository.

The test build just takes it from your repo. It's not a problem to switch between them.

Oh, now that I reread your message I see you didn't intend for them to test your branch directly necessarily. My bad.

vchernin avatar Oct 09 '21 18:10 vchernin