Skip to content

flatpak: Bundle libspeechd and enable speech-dispatcher for voice alerts#2767

Draft
rafaellehmkuhl wants to merge 1 commit into
bluerobotics:masterfrom
rafaellehmkuhl:fix-voice-alerts-on-flatpak
Draft

flatpak: Bundle libspeechd and enable speech-dispatcher for voice alerts#2767
rafaellehmkuhl wants to merge 1 commit into
bluerobotics:masterfrom
rafaellehmkuhl:fix-voice-alerts-on-flatpak

Conversation

@rafaellehmkuhl

@rafaellehmkuhl rafaellehmkuhl commented Jun 8, 2026

Copy link
Copy Markdown
Member

⚠️ Not working! There's some piece still missing.

Chromium gates the Web Speech API behind the --enable-speech-dispatcher switch on Linux and dlopens libspeechd.so.2 at runtime. The 22.08 Electron BaseApp does not ship libspeechd, and the sandbox blocks the speech-dispatcher socket and D-Bus name, so voice alerts silently no-op on the Flatpak build while working on the AppImage.

Vendor libspeechd 0.11.5 (matching the version the BaseApp historically shipped on this runtime) into the Flatpak, expose xdg-run/speech-dispatcher and the SpeechDispatcher D-Bus name, and append the Chromium switch from the Electron main process so Cockpit can talk to the host's speech-dispatcher daemon. Also document the host-side deps next to the Flatpak download.

Fix #1834

Chromium gates the Web Speech API behind the --enable-speech-dispatcher
switch on Linux and dlopens libspeechd.so.2 at runtime. The 22.08 Electron
BaseApp does not ship libspeechd, and the sandbox blocks the speech-dispatcher
socket and D-Bus name, so voice alerts silently no-op on the Flatpak build
while working on the AppImage.

Vendor libspeechd 0.11.5 (matching the version the BaseApp historically
shipped on this runtime) into the Flatpak, expose xdg-run/speech-dispatcher
and the SpeechDispatcher D-Bus name, and append the Chromium switch from
the Electron main process so Cockpit can talk to the host's speech-dispatcher
daemon. Also document the host-side deps next to the Flatpak download.
@rafaellehmkuhl rafaellehmkuhl force-pushed the fix-voice-alerts-on-flatpak branch from 639248e to 6e60f01 Compare June 8, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Voice alerts not working on Linux + Standalone

1 participant