[BRLTTY] speechd: configuraable socketpath?

Christian Schoepplein chris at schoeppi.net
Tue Mar 15 18:44:06 EDT 2022


On Mon, Mar 14, 2022 at 04:44:03PM +0100, Halim Sahin wrote:
>
>is it possible to configure the socketpath of the unix socket of
>speech-dispatcher in brltty.conf?

I've managed it this way:

1. Open the file /lib/systemd/system/brltty.service as root.
2. Go to the section [service] and add the following line:

Environment="SPEECHD_ADDRESS=unix_socket:/run/user/1000/speech-dispatcher/speechd.sock"

So the whole section should look like this:

-----
[Service]

Type=notify
ExecStart=/bin/brltty --no-daemon
TimeoutStartSec=5
TimeoutStopSec=10
Environment="SPEECHD_ADDRESS=unix_socket:/run/user/1000/speech-dispatcher/speechd.sock"
-----

3. Reload the systemd deamon to activate the change. As root, execute the 
following command:

systemctl daemon-reload

4. As root, restart brlty with the following command or reboot your machine:

systemctl restart brltty.service

Thats it... Now brltty, started as root, will look, for the speechd.sock 
socket as /run/user/1000/speech-dispatcher/speechd.sock.

Ciao,

  Schoepp



More information about the BRLTTY mailing list