126.4. speech-dispatcher-0.12.1
Speech synthesis server for screen readers, with espeak-ng as its voice
0.12.1-1 · GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause · 1.2 SBU · 27.9 MiB, 412 files · 41_system, 26 of 1047 · ports/core/accessibility/speech-dispatcher
Homepage: https://freebsoft.org/speechd
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/accessibility.txt:
The speech API a screen reader talks to. espeak-ng is the voice behind it; without this nothing on the image can drive it.
Speech Dispatcher is the common speech interface of the desktop: Orca, KMouth, Dasher, Okular’s Read Aloud and every Qt TextToSpeech program talk to it, and it speaks with espeak-ng, its only synthesiser. Each user runs a server of their own, started on the first client’s connection. The package installs the server, its output module sd_espeak-ng, the client library libspeechd, spd-say, the Python module speechd and spd-conf, which writes a per-user configuration. See Speech and the sound card.
Depends on: glib, dotconf, libsndfile, espeak-ng, alsa-lib, help2man, python3, python3-pyxdg.
Required by (7): brltty, dasher, kmouth, mumble, orca, qt6-qtspeech, scummvm.
Sources: speech-dispatcher-0.12.1.tar.gz (7.1 MiB). Every step kpkg takes applies to this port.
Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install speech-dispatcher'
build.sh:
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
--disable-static \
--disable-ltdl \
--with-espeak-ng \
--without-espeak \
--without-flite \
--without-pico \
--without-ivona \
--without-ibmtts \
--without-voxin \
--without-baratinoo \
--without-kali \
--with-alsa \
--without-libao \
--without-pulse \
--without-pipewire \
--without-nas \
--without-oss \
--without-systemdsystemunitdir \
--without-systemduserunitdir \
--enable-python
make LDFLAGS="$LDFLAGS"
make LDFLAGS="$LDFLAGS" DESTDIR=$PKG install
rm -f "$PKG"/usr/libexec/speech-dispatcher-modules/sd_{cicero,dummy,espeak-ng-mbrola,festival,generic,openjtalk}
find "$PKG/etc/speech-dispatcher/modules" "$PKG/usr/share/speech-dispatcher/conf/modules" \
-type f ! -name espeak-ng.conf -delete
--with-espeak-ng— buildsd_espeak-ng, the one output module that speaks.--without-espeak— with--without-flite,--without-pico,--without-ivona,--without-ibmtts,--without-voxin,--without-baratinooand--without-kali: no module for an engine this tree does not carry.--with-alsa— play through ALSA, whose default device is the session’s PipeWire, and through no other audio interface:--without-libao,--without-pulse,--without-pipewire,--without-nasand--without-oss.--disable-ltdl— no libltdl; the output modules are separate programs and the server loads no plugins.--without-systemdsystemunitdir— with--without-systemduserunitdir: install no unit files, which KDOS has no service manager to read.--enable-python— install thespeechdPython module andspd-conf, which imports it and finds its files through python3-pyxdg.
Programs: spd-conf, spd-say, spdsend, speech-dispatcher.
Libraries: libspeechd.so, libspeechd_module.so.
Directories: /etc/speech-dispatcher, /usr/include/speech-dispatcher, /usr/lib/python3.14/site-packages/speechd, /usr/lib/python3.14/site-packages/speechd_config, /usr/lib/speech-dispatcher, /usr/libexec/speech-dispatcher-modules, /usr/share/licenses/speech-dispatcher, /usr/share/sounds/speech-dispatcher, /usr/share/speech-dispatcher.
The build makes sd_cicero, sd_dummy, sd_festival, sd_generic and sd_openjtalk whatever configure is told, and sd_espeak-ng-mbrola with --with-espeak-ng; it installs a module configuration for every engine it knows. A speechd.conf with no AddModule line, as shipped, starts every sd_* program it finds, so each of these would start beside sd_espeak-ng on every login and fail for want of its engine, and sd_dummy would stay resident. build.sh deletes those programs and every module configuration but espeak-ng.conf after the install, which leaves espeak-ng the only module found. The server still adds espeak-ng-fallback, a second sd_espeak-ng with no configuration, after the modules it found, and logs that it cannot load sd_dummy, its last fallback; neither changes what speaks.