The best local service I’ve found.
Install via flatpak - GitHub - mkiol/dsnote: Speech Note Linux app. Note taking, reading and translating with offline Speech to Text, Text to Speech and Machine translation.
Set https://pastebin.com/raw/JdiJUaZM to a hotkey to read whatever’s currently selected
Speech to text with X11 should just work, right click speechnote in taskbar → listen, active window
Speech to text under kde with wayland
Install ydotool (Time of writing, https://fedora.pkgs.org/42/fedora-x86_64/ydotool-1.0.4-6.fc42.x86_64.rpm.html works)
sudo nano /lib/systemd/system/ydotool.service
[Unit]
Description=Starts ydotoold service
[Service]
Group=input
Type=simple
Restart=always
ExecStart=/usr/bin/ydotoold -P 660
ExecReload=/usr/bin/kill -HUP $MAINPID
KillMode=process
TimeoutSec=180
[Install]
WantedBy=default.target
sudo usermod -a -G input ${USER}
systemctl enable ydotool --now
printf 'export YDOTOOL_SOCKET=/tmp/.ydotool_socket\n' > ~/.config/plasma-workspace/env/exports.sh
flatpak override --user net.mkiol.SpeechNote --filesystem=/tmp/.ydotool_socket
Right click speechnote in taskbar → listen, active window