254.17. qt6-qtspeech-6.12.0
Qt 6 TextToSpeech — speech synthesis through speech-dispatcher
6.12.0-1 · LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only · 2.3 SBU · 748.7 KiB, 83 files · 43_toolkits, 91 of 344 · ports/core/qt6/qt6-qtspeech
Homepage: https://www.qt.io
Why it is in KDOS. The comment above the 27 ports from qt6-qtbase to qt6-qtmqtt in script/phases/43_toolkits/packages.d/qt6.txt:
Built with the Wayland and xcb platforms. QT_QPA_PLATFORM is
wayland;xcb, so a Qt application falls back to Xwayland only when the Wayland plugin cannot start, and QT_QPA_PLATFORMTHEME=kde makes it read its palette, fonts and icons from the kdeglobalskdos themewrites.
Qt Speech is the QtTextToSpeech library for Qt 6: QTextToSpeech speaks text, and its engine plugins do the speaking. This port builds the Speech Dispatcher engine, which speaks through speech-dispatcher and so through whichever synthesiser it is set to, and the mock engine, which upstream builds on every platform and which produces no sound.
Depends on: cmake, ninja, qt6-qtbase, pkgconf, qt6-qtdeclarative, qt6-qtmultimedia, speech-dispatcher.
Required by (16): calibre, goldendict-ng, kanagram, kdepim-runtime, kiwix-desktop, kmouth, knights, ktextaddons, ktexteditor, ktextwidgets, neochat, okular, pdf4qt, python3-pyqt6, sdrangel, stellarium.
Sources: qt6-qtspeech-6.12.0.tar.xz (248.9 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install qt6-qtspeech'
build.sh:
mkdir build && cd build
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQT_BUILD_TESTS=OFF \
-DQT_BUILD_EXAMPLES=OFF \
-DFEATURE_speechd=ON \
-DFEATURE_flite=OFF
ninja
DESTDIR=$PKG ninja install
-DFEATURE_speechd=ON— the Speech Dispatcher engine, named so that a missinglibspeechdstops the configure.-DFEATURE_flite=OFF— no Flite engine; Flite is not a port.
Libraries: libQt6TextToSpeech.so.
Directories: /usr/include/qt6/QtTextToSpeech, /usr/lib/cmake/Qt6TextToSpeech, /usr/lib/cmake/Qt6TextToSpeechPrivate, /usr/lib/qt6/qml/QtTextToSpeech, /usr/share/licenses/qt6-qtspeech.
Like every Qt 6 module but qt6-qtbase, it passes no install paths of its own (see How Qt 6 is built).