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

Text to Speech (TTS) does not work #117

Open
cerulis64 opened this issue Nov 23, 2020 · 8 comments
Open

Text to Speech (TTS) does not work #117

cerulis64 opened this issue Nov 23, 2020 · 8 comments
Labels
bug Issues that need a fix upstream Issues that we can't fix because they are Discord's waiting Issues waiting for something else to happen

Comments

@cerulis64
Copy link
Contributor

In the right click menu on a message, there is an option that reads "Speak Message". Clicking this button is supposed to cause the message to be read out loud, but clicking it does nothing. Channel wide text to speech also does not work.
My guess is that the package does not include espeak causing text to speech to not have any sound output.

@TingPing
Copy link
Member

Sounds likely, adding espeak to the manifest shouldn't be too hard.

@TingPing TingPing added the help wanted Issues where help is wanted label Nov 23, 2020
@TheGreatestJannet
Copy link

Does discord on Linux even support Text to Speech?

@cerulis64
Copy link
Contributor Author

Not sure.

@lionirdeadman
Copy link
Collaborator

@NotAFile
Copy link

NotAFile commented Dec 14, 2021

So it turns out, discord just uses the WebSpeech api. This is cross-platform, so there is no reason why it should not work on linux. However, it is disabled in chromium for unknown reasons, probably so people use the proprietary voice synthesis implemented in Google's Chrome builds. However, I can get it to work using the --enable-speech-dispatcher argument.

I'm not familiar enough to figure out how to do this inside of flatpak myself unfortunately. I tried adding the flag and xdg-run/speech-dispatcher:ro to the filesystems but it does not seem to help. But either way it should definitely be possible, despite what Discord says. Maybe this issue could be reopened to get some more eyes on it?

@lionirdeadman lionirdeadman added the bug Issues that need a fix label Dec 14, 2021
@lionirdeadman
Copy link
Collaborator

I've tried making it work with no success. It seems adding espeak-ng and this flag is not enough to make it work. It may be related to electron/electron#22844 or other electron issues, I can't really figure it out.

@lionirdeadman lionirdeadman reopened this Dec 14, 2021
@Vendicated
Copy link

Vendicated commented Jul 5, 2024

libspeechd has now been added to the electron BaseApp so this is as simple as adding a permission and command line flag (users will still need speech-dispatcher installed on the host)

see flathub/org.electronjs.Electron2.BaseApp#59 and https://github.com/flathub/dev.vencord.Vesktop/pull/20/files

@lionirdeadman
Copy link
Collaborator

Thank for the heads-up. I got it working. While trying to get this to work, I did unfortunately stumble on this:
https://bugzilla.redhat.com/show_bug.cgi?id=2284507

So unfortunately, this will not work on Fedora for now.

@guihkx guihkx added waiting Issues waiting for something else to happen and removed help wanted Issues where help is wanted labels Oct 7, 2024
@guihkx guihkx added the upstream Issues that we can't fix because they are Discord's label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that need a fix upstream Issues that we can't fix because they are Discord's waiting Issues waiting for something else to happen
Projects
None yet
Development

No branches or pull requests

7 participants