flathub / org.electronjs.Electron2.BaseApp

7 stars 16 forks source link

Include libspeechd for SpeechSynthesis support #59

Closed hypevhs closed 3 months ago

hypevhs commented 3 months ago

Electron apps may want to use the SpeechSynthesis part of the Web Speech API.

On Linux, this is gated behind the --enable-speech-dispatcher flag. If enabled, Chromium will attempt to dynamically load the Speech Dispatcher library libspeechd.so.2. If not present, speech is disabled. Chromium source code for proof. Right now this library isn't included inside the Flatpak, even though the host may be fully configured with Speech Dispatcher.

This PR builds and includes the library (but not the daemon) so that TTS stuff can easily work as long as the consuming app passes the --enable-speech-dispatcher flag and has sandbox perms for --filesystem=xdg-run/speech-dispatcher.

This is useful for flathub/dev.vencord.Vesktop#20, though we thought it'd make sense to upstream it for other apps' benefit.

flathubbot commented 3 months ago

Started test build 131050

flathubbot commented 3 months ago

Build 131050 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/114049/org.electronjs.Electron2.BaseApp.flatpakref
flathubbot commented 3 months ago

Started test build 131055

flathubbot commented 3 months ago

Build 131055 failed

bbhtt commented 3 months ago

bot, build

flathubbot commented 3 months ago

Queued test build for org.electronjs.Electron2.BaseApp.

flathubbot commented 3 months ago

Started test build 131058

flathubbot commented 3 months ago

Build 131058 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/114057/org.electronjs.Electron2.BaseApp.flatpakref
bbhtt commented 3 months ago

Thanks.