313.3. kmouth-26.08.2
Speech synthesiser front end — type sentences or pick them from phrase books and have them spoken
26.08.2-1 · GPL-2.0-or-later AND GFDL-1.2-only · 0.9 SBU · 830.9 KiB, 44 files · 44_apps, 5 of 422 · ports/core/accessibility/kmouth
Homepage: https://apps.kde.org/kmouth/
KMouth speaks for people who cannot: a sentence is typed, or picked from a phrase book or the history, and read aloud. It is a KDE application on Qt 6 that speaks through Qt TextToSpeech (qt6-qtspeech), which this tree builds with its speech-dispatcher engine only, so the voice comes from speech-dispatcher and its espeak-ng module. Both are in depends for run time; the build does not look for them.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtspeech, kcrash, kcompletion, kconfig, kconfigwidgets, kcoreaddons, ki18n, kio, kwidgetsaddons, kxmlgui, kdoctools, speech-dispatcher, espeak-ng.
Required by (1): kde-gear-utilities.
Sources: kmouth-26.08.2.tar.xz (1.9 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kmouth'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D BUILD_DOC=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D BUILD_DOC=ON— Build the handbook and thekmouth(1)manual page through kdoctools, which is then a required package. On by default upstream; named so the handbook cannot drop out.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
Programs: kmouth.
Directories: /usr/share/doc/HTML/en/kmouth, /usr/share/kmouth, /usr/share/licenses/kmouth.
Upstream sets CMAKE_CXX_FLAGS_RELEASE to -Wall -Wno-switch -O2 itself, replacing CMake’s -O3 -DNDEBUG; a normal variable set in the project shadows the cache entry the command line would set, so the port builds at upstream’s level.
The phrase books for Catalan, Dutch, German and Swedish are data the program reads, not message catalogues, and ship beside the English ones. The install also writes /etc/xdg/kmouthrc, the toolbar layout upstream ships as the system default, and translated manual pages that kpkg’s language rule removes.
The voice KMouth offers on its first start is Qt TextToSpeech’s choice for the session’s locale: a voice whose language matches the locale’s. Under the system’s en_US.UTF-8 that is an English voice. Under C.UTF-8 Qt’s locale names no language, and the voices that match it are the eSpeak NG voices whose language Qt cannot parse, so the first of those, Bishnupriya Manipuri, would be picked. The choice is saved in ~/.config/kmouthrc and is changed in KMouth’s configuration.