flathub / com.valvesoftware.Steam

https://flathub.org/apps/details/com.valvesoftware.Steam
335 stars 70 forks source link

[Feature Request] Add Speech-Dispatcher socket support for Hypnospace Outlaw #1236

Open SimplyTadpole opened 5 months ago

SimplyTadpole commented 5 months ago

Game information & Problem description Hypnospace Outlaw is a game about exploring a fictional version of the late 1990s internet, in an alternate universe where technology is more advanced than ours to the point that it's possible to create devices to access the internet from your sleep.

More relevant to the case, however, is that the game features a companion character, HYPII, which communicates via Text-to-Speak (aka TTS). This feature is by default broken on Linux and the developers made it auto-disable on the Linux version of the game, but it's possible to hack TTS into working on Linux. Unfortunately, this does not work on the Flatpak version of Steam, as this method requires installing TTS packages (espeak-ng and speech-dispatcher, as well as speech-dispatcher-utils on Fedora) on your core system, and it has no proper way to access those files by default (due to them being in /usr).

This has also been an issue with the Flatpak version of Firefox, which shows this same error even when the necessary packages are already installed. According to Mozilla's Bugzilla page, however, it is possible to circumvent this by implementing a socket that is able to communicate with a speech-dispatcher daemon and send and receive TTS requests from within the Flatpak sandbox - or, at least, that's what I managed to gather from the developers/testers' responses to the issue.

I understand if this is too niche to bother implementing as I'm pretty sure Hypnospace Outlaw is the only significant game on Steam that uses TTS, but would any of you be interested in taking a look at this and checking if it's possible to implement something like this? I figured it wouldn't hurt to at least ask, plus it may be helpful to people who require TTS for accessibility reasons in general.

Distribution name and version where applicable Fedora Kinoite 39

Flatpak info

Does this issue reproduce with native Steam

Have not tested, but generally users who use native Steam reported the guide working for them

zastrixarundell commented 3 months ago

I personally don't have access to that game. At least from looking at this "pr" you can run flatpak override --user com.valvesoftware.Steam --filesystem=xdg-run/speech-dispatcher:ro and it should work. Can you do this and confirm whether that worked?