Hypnospace Outlaw

Hypnospace Outlaw

32 ratings
Enable Hypii on Linux (Ubuntu/Linux Mint)
By Alyxxandria
A guide to getting Hypii speaking on Ubuntu and Linux Mint
2
   
Award
Favorite
Favorited
Unfavorite
Requirements
Thanks to Tom.K on the Hypnospace Discord for creating the original guide and discovering this to begin with!

This guide is for Ubuntu and Linux Mint and other Debian based distros.
Check this guide by polocatfan[pastesio.com] for Arch Linux and Steam Deck. There's also a guide for Ubuntu[pastesio.com]. These guides provide easier ways to get the TTS working.

To get Hypii working on the Linux version of Hypnospace Outlaw, you'll need to install Speech Dispatcher. If you're on Ubuntu or Linux Mint then it's most likely already installed, but on some distros you will need to add it manually.

Open a terminal and do the following commands:
sudo apt install speech-dispatcher
sudo apt install speech-dispatcher-espeak-ng
speech-dispatcher


It should tell you that Speech Dispatcher is running.

To test if it's working, type the following:
spd-say "Your text here"

To get Speech Dispatcher working with Hypnospace Outlaw, simply open Properties and go to General->Launch options.
Add "--enable-speech-dispatcher" without the quotes in the field.

By default, Hypii's voice is disabled on Linux, so you will need to install some mods to get it working.
Enabling Hypii voice [Manual way]
If you're comfortable doing a little coding, you can do the mod yourself the following way. If you'd rather download the fully modded files instead, you may skip this section.

Go to "/Steam/steamapps/common/Hypnospace Outlaw". Make a backup copy of "package.nw", then open it with an archive manager. Extract data.js and open it in a text editor. Be mindful that most text editors might crash due to the size of the file, and some may add formatting that can screw up the file and make the game unable to start. I recommend opening a terminal and using "nano data.js" to edit the file, though beware the program will be slow to respond to input.

Search for "HypiiRobot". The first result should be this:
...[3,154,null,623024275741261,false,[[1,[2,"HypiiRobot"]],[7,[0,1]]]],[80,187,null,854277302118531,false,[[10,6],[3,1]]],[81,187,null,176678765389064,false,[[10,6],[3,1]]]...

Replace "HypiiRobot" with "HypiiRobotHack"*. Then change [3.1] to [3.0] after "854277302118531", and the same after "176678765389064".

Search again for "HypiiRobot" and on the second result, it should be:
...[3,154,null,694855591259663,false,[[1,[2,"HypiiRobot"]],[7,[0,1]]]]...
Again, replace "HypiiRobot" with "HypiiRobotHack"*.

* You can use anything you want here since it's just a matter of changing the original command.

Save the file and add it back to "package.nw", replacing the original file in the archive.

If you launch the game you will be able to disable Hypii's robot voice and have it talking, though you may notice the pronunciation is wrong, so we will have to set the language in a custom file.

Go to "/usr/share/speech-dispatcher/conf/clients", open the folder as root and make a new file entitled "hypnos.conf". Add the following text:
BeginClient "*:HypnOS:*"
DefaultLanguage "en"
EndClient


Also go to "/usr/share/speech-dispatcher/conf" and open "speechd.conf".
Search for "DefaultLanguage" and remove the # before it, then set it to:
DefaultLanguage "en"
Search for "DefaultModule" and remove the # before it and set it to:
DefaultModule espeak

Save the file and restart your PC. Hypii should now be working correctly.
Enabling Hypii voice [Easy way]
Download these files:
https://www.dropbox.com/scl/fi/♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥/package.nw?rlkey=5hboxhpsus1pjslcw38sezdzn&dl=0
(If you get a 400 Error clicking the link, copy and paste it into your browser window as the link gets broken by Steam's forwarding)
https://www.dropbox.com/s/mbimgkybk917ajh/hypnos.conf?dl=0
https://www.dropbox.com/s/vvhmtv26wauvu2r/speechd.conf?dl=0

Go to "Steam/steamapps/common/Hypnospace Outlaw" and make a backup of "package.nw".

Download the modded package.nw file and put it in the folder.

Now you can disable the Hypii Robot Voice in Hypnospace Outlaw and get Hypii talking, however you may notice the speech is a little off and pronounciations are wrong.

To fix this, go to "/usr/share/speech-dispatcher/conf/clients" and open the folder as root. Add hypnos.conf after downloading it.

Then add speechd.conf to "/usr/share/speech-dispatcher/conf".

This should fix the problems. If it doesn't, try adding it to "/etc/speech-dispatcher/clients" as well, though this shouldn't be necessary.

Reboot your PC and Hypii should now be speaking normally. Now you can have your Hypii partner fully functional while exploring Hypnospace!
84 Comments
Queen 5 Jul @ 7:33pm 
Thank you to everyone contributing to this and the arch specific guide.
Works great for me, with some obscure troubles. Upon clicking on specific pieces of text, the TTS will die and not produce any more sounds until I restart the game. The specific text that I have been testing with is "You see, [name], my beautiful step-mom, Marshmellow..." on the sonoftim website.

If anyone has a clue, I'd love to hear it - been looking into it all night and my best guess is that something is being sent to the TTS that the TTS really does not like, causing it to get stuck - but I haven't found out how to get a look at exactly what request is being sent from the game. The level 5 verbose log of speech-dispatcher is cut short before the message would appear due to the halt.
Alyxxandria  [author] 23 May @ 2:26pm 
@polocatfan: Will link that one too
polocatfan 23 May @ 12:45pm 
Did a guide for Ubuntu/Debian since it's much easier now. https://pastesio.com/hypnospace-outlaw-text-to-speech-guide-for-debian-and-ubuntu
Alyxxandria  [author] 23 May @ 10:15am 
@polocatfan: Awesome! Your guide rocks and I will add a link to it in the opening section of mine.
polocatfan 23 May @ 9:59am 
(also forgot to mention in the guide, if you don't see Steam-Play-None after installing it, then restart steam.)
polocatfan 23 May @ 9:58am 
New Guide for Arch Linux/Steam Deck. Much easier than the last one.
https://pastesio.com/hypnospace-outlaw-text-to-speech-guide-for-arch-linux-and-steam-deck
polocatfan 22 Apr @ 1:16am 
working on ubuntu too. this ABSOLUTELY did not work this way before so something must have happened, but I'm glad it's fixed.
polocatfan 22 Apr @ 1:10am 
@j osh huh. wow. yeah works on steam deck too. only thing is that I needed to use "Steam Play None" instead of the legacy runtime. 2800 was the right voice for US American. I guess patching the files is no longer needed.
j osh 19 Apr @ 9:34am 
Launching outside of Steam isn't necessary. As I mentioned, all that's required for this to work is speech-dispatcher, a TTS to dispatch to, using the legacy Steam runtime, passing the flag to the game, and finding the right voice. No patching files, no extra configuration, and no manual launching.
Alyxxandria  [author] 18 Apr @ 10:48am 
Thank you 80KiloMett!