cat /blog/the-still-fragile-state-of-linux-speech

The still-fragile state of Linux speech

Category Accessibility
Published

A story about a frustrating bug and an opinion piece on how we got here

In some ways this is an article I’ve been trying to write for at least a year. But a combination of cataracts, anxiety, general frustration about my life, and not knowing how to articulate things… has prevented me from doing it.

If you don’t already know who I am, I’m Ritchie, a KDE developer and blind game programmer. I use assistive technology in Plasma to help me navigate my computer with limited sight. I am thankful for the sight I still have left, as it is enough to not rely on a screen reader (except for on my phone).

In 2025 I was contracted by KDE e.V. to improve accessibility in Plasma and KDE apps. For the most part I’ve focused on KWin and the zoom plugin since that’s what I actually rely on. But another thing I’d like to help improve is screen reader support.

What’s wrong with screen readers on KDE/Linux?

In KDE specifically, the main issues are with labelling and navigation. It’s not that the desktop is completely inaccessible to the blind. It is moreso that there are still quite a lot of papercuts and jank that ought to be ironed out.

Unfortunately, part of the jank that affects KDE accessibility, is below Plasma. In fact I’d be surprised if the same bugs don’t in some way affect other desktops, so if this article leads to them being solved then that’s a win for everyone.

The challenge reporting screen reader bugs

The entire point of a screen reader is to read the screen to someone who can’t read the screen. To put it simply, if a bug prevents the screen reader from launching, you are fucked. To be able to even write up a bug report you’d need another working device you’re able to use.

I’m privileged in the sense I have many computers and many different ways to interact with them, none of which requiring a screen reader to be functional.

In the age of RAM costing more than a house, not everyone has or can afford a backup computer to use when their daily driver computer decides to forget what accessibility is.

So what’s ultimately going to happen is blind people will experience bugs like this, get incredibly frustrated, and switch to an operating system that doesn’t have that problem. There is no other choice for them, they do not have a functioning computer.

Where I fit in

Where I come in is having experience actually using a screen reader, while still having the sight needed to see what’s not working - and to communicate that to others.

As stated previously I rely on a screen reader to use my phone. That’s because the screen is too small, and even with zoom, I just can’t fit enough on the screen at once for text to be legible. You generally don’t interact with a screen reader on a phone the same way you do on a computer, but under the hood it is all still accessibility trees and a program that turns text into speech.

However to really know for sure Plasma is accessible, I need to use it with a screen reader. I need to be able to hear what a totally blind person would hear, compare that with what I see on-screen and what I’m not able to access, and also compare that with what an accessibility debugger sees.

In other words I need to be able to see what a blind person can and can’t access, and I need to know why. Is it just not labeled by the app? Or is the screen reader itself refusing to read the labels?

Naturally this means having a functioning screen reader is really important for me. When it breaks, that impacts my job.

So what’s the bug?

In an ideal world this would be a bug report, and I hope eventually to turn it into one. I’m just not there yet. I don’t know what actually broke.

On the surface all that happens is: sometimes I try to turn Orca on with Meta+ Alt+S and nothing happens.

It’s supposed to say “Screen reader on.” It never gets that far.

I’ve been stuck on this bug for several months now. Every time it happened, I’d reboot my computer and Orca would launch as soon as I log back in. And then it’d work mostly fine for a bit. But since I don’t rely on it to read my screen, I’d turn it off when I’m done testing - and go about my business.

But every time I’d decide “I want to test screen reader support in this spot,” I’d go to open Orca again, and nothing would happen.

Troubleshooting

The first thing I do when something silently crashes/refuses to launch is I try to run it from a terminal. Usually the binary will print diagnostic info to the console and give me a better idea of why it refused to start. Luckily Orca does do that, but the error it printed made me shake my head.

Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
~ ❯❯❯ orca
Another screen reader process is already running for this session.
Run “orca --replace” to replace that process with a new one.

It told me another screen reader is running and to run orca --replace to replace it. There wasn’t a functioning screen reader running, but maybe orca was hung in the background. So I ran it again.

~ ❯❯❯ orca --replace                                                                                                                                                                                                             ✘ 1
14:14:03.109360 - ERROR: Failed to connect to Speech Dispatcher: Can't open socket using method unix_socket
                  Original error: [Errno 111] Connection refused
                  Additional error: Server refused to autospawn, stating this reason: b'Speech Dispatcher already running.\n\n'

(orca:708479): dbind-WARNING **: 14:14:03.350: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1000/at-spi2-P17VZ3/socket: No such file or directory
fish: Job 1, 'orca --replace' terminated by signal SIGKILL (Forced quit)

To me it looks as though Orca detected the process I’d just run as the already- running process and decided to immediately send itself to the void. But it also complained that it couldn’t connect to Speech-Dispatcher because that was supposedly already running.

Speech-Dispatcher is a background process applications can communicate with to make your computer speak. It works as a bridge between the application wanting to speak, and all of the voices and synth engines on your computer, so the app doesn’t need to know how to communicate with each synthesis engine separately. That’s useful - and it should always and already be running.

So I tabbed over to another window I knew uses Speech-Dispatcher to speak, and I made it speak. It spoke. So clearly Speech-Dispatcher was working.

It’s at this point I decided to submit a bug report to Orca. So I pulled the version string.

~ ❯❯❯ orca -v                                                                                                                                                                                                                  ✘ 137
Orca version 50.3, AT-SPI2 version: 2.60.7, Session: wayland KDE

But as I started filling out the report, I wanted to make sure I wasn’t crazy. So I ran spd-say, a utility that you can use to test Speech-Dispatcher to make sure apps can connect to it and that it can speak.

~ ❯❯❯ spd-say "Hello world!"
Failed to connect to Speech Dispatcher:
Error: Can't connect to unix socket /run/user/1000/speech-dispatcher/speechd.sock: Connection refused. Autospawn: Autospawn failed. Speech Dispatcher refused to start with error code, stating this as a reason: Speech Dispatcher already running.

This is the same error Orca just printed. It’s complaing Speech-Dispatcher is already running. It should be!

So I decided just to try whacking it. I mean, that’s just how it is with these tools. Sometimes they just misbehave and you kinda sorta just need to whack it until it works again. So I started restarting services.

~ ❯❯❯ sudo systemctl stop speech-dispatcherd                                                                                                                                                                                     ✘ 5
~ ❯❯❯ spd-say test
Failed to connect to Speech Dispatcher:
Error: Can't connect to unix socket /run/user/1000/speech-dispatcher/speechd.sock: Connection refused. Autospawn: Autospawn failed. Speech Dispatcher refused to start with error code, stating this as a reason: Speech Dispatcher already running.

Stopped the wrong service, but, same error. Weird.

~ ❯❯❯ systemctl --user stop speech-dispatcher                                                                                                                                                                                    ✘ 1
Warning: The unit file, source configuration file or drop-ins of speech-dispatcher.service changed on disk. Run 'systemctl --user daemon-reload' to reload units.

I got the right service this time, but I had yet to notice the warning. So we’ll get to that later. But I continued testing.

~ ❯❯❯ systemctl --user stop speech-dispatcher.socket                                                                                                                                                                             ✘ 5
Warning: The unit file, source configuration file or drop-ins of speech-dispatcher.socket changed on disk. Run 'systemctl --user daemon-reload' to reload units.

It’s at this point I noticed the warning. I’m not sure what caused the unit files to change on disk, perhaps it was a Fedora update I forgot I ran and I just hadn’t rebooted yet. We’ll never know. But it tells you how to fix that, so I did the daemon-reload.

~ ❯❯❯ systemctl --user daemon-reload
~ ❯❯❯ spd-say test
Failed to connect to Speech Dispatcher:
Error: Can't connect to unix socket /run/user/1000/speech-dispatcher/speechd.sock: Connection refused. Autospawn: Autospawn failed. Speech Dispatcher refused to start with error code, stating this as a reason: Speech Dispatcher already running.

Weird. Same error. But maybe the daemon-reload operation doesn’t automatically restart the services it was complaining about previously. So I tried stopping them again.

~ ❯❯❯ systemctl --user restart speech-dispatcher                                                                                                                                                                                 ✘ 1
~ ❯❯❯ systemctl --user restart speech-dispatcher.socket
~ ❯❯❯ spd-say test
Invalid language en-US!
Speech Dispatcher failed to say message

This got a different result. This time it complains that American English does not exist. I posted this output on both the KDE Accessibility and GNOME Accessibility Matrix rooms. It took a bit to get responses, which was unfortunate, because at this point text-to-speech was thoroughly broken on my computer and it made it difficult to read Matrix messages. I also couldn’t reboot to fix it because I was compiling a new Plasma build in the background. Rebooting at that point would’ve rendered my computer inoperable.

Someone in the KDE matrix said “oh yeah this happens to me sometimes, usually killall -9 speech-dispatcher fixes it for me, kill orca too for good measure”

There’s a surprising amount of murder involved in making Linux accessible, and I’m genuinely not joking, because that literally solved the problem.

So, the bug’s fixed! The screen reader works again! Right?

This wasn’t a fix at all

Killing speech-dispatcher and orca solved my immediate problem, sure. But why did it happen in the first place? I still don’t know.

What’s clear to me is none of it has to do with a screen reader supposedly already running. It also has nothing to do with Speech-Dispatcher already running. Orca may have been hung in the background, but there’s going to be a reason that it did.

Another problem I suspect is that maybe Speech-Dispatcher was running properly, but the socket used to connect to it had gone stale. So things would connect to the bad socket, get refused, think speech-dispatcher isn’t running, try to start it, find out that it’s already running, and die. That’s a hypothesis, but I don’t work on Speech-Dispatcher so I don’t know.

But even if the above were true, that’d only explain Orca and spd-say crashing. That wouldn’t explain why, up until the weird locale error, I was still able to use TTS elsewhere.

Later on, in the GNOME Matrix, someone suggested I look at the speech-dispatcher logs and told me where they were. By the time they said that, I’d already gotten Orca to run again. So I have to wait until the next time it happens and immediately grab logs.

How’d we get here?

Some may blame Wayland. These tools were written in the X11 days with X11 in mind. And while you’d be right 5 years ago, there’s been a lot of progress made since. Mouse review, a feature I’d rely on, was being worked on in KWin around Plasma 6.7.

Based on discussions I’ve had with others in the FOSS community, the real problem in my opinion is a lack of funding. Making software accessible to the blind involves a lot of tedium, and is often incredibly thankless. In other words it is very difficult to find motivation to voluntarily work on this stuff, that isn’t born from anger about one of your friends not being able to use their computer.

Not only is it tedious and thankless, but it requires knowing how to actually do it. The reason behind the papercuts in Plasma isn’t that we don’t bother trying to make it accessible. It is that there are many forms of vision loss with different needs. People use different software in different ways to do different things and that’s no exception for those of us with disabilities.

In other words, you sorta need to see a blind person struggle or be a struggling blind person to fully understand what the bugs are and exactly why things don’t behave as expected. But getting as far as I did troubleshooting this bug relied on me still having enough sight left to not need a screen reader.

Conclusion / Why I struggled to write this article

I am very guilty of literally seeing red when my accessibility tools don’t work, and cursing like a sailor about it. It gets violent fast. That’s because it is a truly viceral feeling of losing my independence and capability. If I can’t zoom into my computer, it’s over. I just can’t use that system anymore. I keep a USB drive with an accessible version of KDE on it just in case, but I’ve been known to forget where I put things.

What I’m trying to say is I get very angry at my computer and my assistive technology for not working, when it decides to not work, because it SERIOUSLY NEEDS TO BE WORKING. And so I sympathize with anyone out there writing skaving articles about how bad Linux accessibility is. Problem is that just burns people out. I didn’t want to contribute to that.

I think a better way to look at it is that these tools are fragile. They’re old tools, they’ve had to adapt to how Wayland works. Wayland has fundamentally different design goals than X11 did, which was around when these tools were being built. So they were built with X in mind, and even if they were buggy, you could at least work around the bugs with scripts. But those scripts are also fragile and Wayland broke them for the people who rely on them.

Because of many legitimate flaws in how X worked, lots of desktops are choosing to either abandon it or only keep it around for legacy reasons. But the funding isn’t being directed to the right places for these old accessibility tools to continue to be improved as quickly as necessary for the switch to Wayland to be safe.

Because Wayland isn’t yet a safe place for screen reader users to live in, most people with working setups stick to X11. Those who rightfully don’t want to fight the bugs anymore, switch away from Linux. Less people overall end up using the tools and bugs/regressions don’t get noticed as easily.

Perhaps less people wanting to put up with the papercuts means less people will want to volunteer to work on things like Orca, and I wouldn’t blame them. When I was dealing with my cataracts, I barely wanted to get out of bed most days let alone work on anything to do with accessibility. I just didn’t want to struggle anymore. I still don’t.

Perhaps the solution is more funding. But that money needs to come from somewhere. There certainly isn’t enough in my bank account to fund enough of an army to combat these kinds of bugs. I certainly also wouldn’t want to throw an LLM at the problem because I reject artificial intelligence and because that would contribute to the poor economy we as a society are in at the time of me writing this.

Where do we go from here?