[BRLTTY] No speech using eSpeak/etc/pulse/system.pa

Dave Mielke Dave at mielke.cc
Sat Nov 21 14:21:08 EST 2020


[quoted lines by Sebastian Humenda on 2020/11/21 at 19:48 +0100]

>A dozen compilations later, I found the commit that breaks sound support for
>me: e4db8ea67b0af442367625ee23, ~1 of that commit still works, I'm using this
>to compose this e-mail.

So, the commit listed above is the first one that doesn't work? 

It isolates a few namespaces. I suppose we could experiment with nt isolating
them, one at a time, to see which one might be doing it. On line 632 of
pgmprivs_linux.c you'll find:

   static const IsolatedNamespaceEntry isolatedNamespaceTable[] = {

Just below it you'll find a sequence of namespace isolation entries, each
encapsulated within an #ifdef #endif pair. Try commenting out each of them, one
at a time, to see which one is causing the problem.

>what would be a recommended way to have BRLTTY running with pulse? I know that
>it is possible to run Pulse as root, but my last attempt to get it working a
>few weeks ago were not successful. 

I run with Pulse Audio, and have for many years. I've attached my system.pa and
pulseaudio.service files to this message.

-- 
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke            | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave at Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada  K2A 1H7   |
-------------- next part --------------
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started in system
# mode.

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
load-module module-null-sink
#load-module module-pipe-sink

load-module module-alsa-sink device=hw:0 sink_name=internal_output
load-module module-alsa-source device=hw:0 source_name=internal_input

load-module module-alsa-sink device=hw:1,0 sink_name=ALC898_output
load-module module-alsa-source device=hw:1,0 source_name=ALC898_input

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev/hal support)
load-module module-detect
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
load-module module-dbus-protocol
load-module module-native-protocol-unix auth-anonymous=1 auth-cookie-enabled=0
load-module module-native-protocol-tcp auth-anonymous=1

.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif

.ifexists module-esound-protocol-tcp.so
load-module module-esound-protocol-tcp
.endif

.ifexists module-zeroconf-publish.so
load-module module-zeroconf-publish
.endif

### Load the RTP receiver module (also configured via paprefs, see above)
.ifexists module-rtp-recv.so
#load-module module-rtp-recv
.endif

### Load the RTP sender module (also configured via paprefs, see above)
.ifexists module-rtp-send.so
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=ALC898_output.monitor format=s16be channels=2 rate=44100 destination_ip=230.4.1.13 source_ip=192.168.0.2 port=8554 ttl=150 loop=1 inhibit_auto_suspend=always
.endif

### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
#load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Honour intended role device property
load-module module-intended-roles

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### Enable positioned event sounds
load-module module-position-event-sounds

### Make some devices default
set-default-sink ALC898_output
set-default-source ALC898_input

.ifexists module-ladspa-sink.so
load-module module-ladspa-sink plugin=dyson_compress_1403 label=dysonCompress sink_master=@DEFAULT_SINK@ sink_name=compressed_output control=-8,1,0.6,0.9
set-default-sink compressed_output

load-module module-ladspa-sink plugin=dj_eq_1901 label=dj_eq sink_master=@DEFAULT_SINK@ sink_name=equalized_output control=6,0,0
set-default-sink equalized_output
.endif

-------------- next part --------------
[Unit]
Description=Pulse Audio Sound Service

#Requires=pulseaudio.socket
Before=sound.target

[Service]
# Note that notify will only work if --daemonize=no
Type=notify
ExecStart=/usr/bin/pulseaudio --daemonize=no --system --realtime --high-priority --disallow-exit --exit-idle-time=-1 --disable-shm --disallow-module-loading
Restart=on-failure
RestartSec=10
SupplementaryGroups=pulse-access
#User=pulse
#Group=pulse

[Install]
#Also=pulseaudio.socket
WantedBy=sound.target


More information about the BRLTTY mailing list