Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include libspeechd for SpeechSynthesis support #59

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

hypevhs
Copy link
Contributor

@hypevhs hypevhs commented Jun 28, 2024

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
Copy link
Contributor

Started test build 131050

org.electronjs.Electron2.BaseApp.yml Outdated Show resolved Hide resolved
org.electronjs.Electron2.BaseApp.yml Show resolved Hide resolved
org.electronjs.Electron2.BaseApp.yml Show resolved Hide resolved
@flathubbot
Copy link
Contributor

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
Copy link
Contributor

Started test build 131055

@flathubbot
Copy link
Contributor

Build 131055 failed

@bbhtt
Copy link
Member

bbhtt commented Jun 28, 2024

bot, build

@flathubbot
Copy link
Contributor

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

@flathubbot
Copy link
Contributor

Started test build 131058

@flathubbot
Copy link
Contributor

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 bbhtt merged commit c463536 into flathub:branch/23.08 Jun 28, 2024
1 check passed
@bbhtt
Copy link
Member

bbhtt commented Jun 28, 2024

Thanks.

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.

None yet

3 participants