Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Hypnospace Outlaw

Alternate reality internet simulator set in 1999! · By Jay Tholen, TetroniMike

How to get text to speech working on Linux?

A topic by DaVince created Apr 06, 2019 Views: 1,417 Replies: 3
Viewing posts 1 to 4
(1 edit)

The HypnOS BIOS always says "No text-to-speech voices found on this PC, Hypii's voice is deactivated".

Now, I have a stock Ubuntu installation and I *know* that it comes with a text-to-speech command by default called spd-say. (It's as easy to run as invoking the `spd-say text here` command.) I guess that's not supported by the game, but which ones are?

AFAIK there's a difference between the TTS options you can run directly and the TTS options that are actually available to the system as a voice for other programs to hook into. Don't quote me on that though.

Either way it likely wouldn't work though, as one of the devs said this on the Discord a while back:

Yeah I couldn't figure out how to get that working with Construct 2/NWJS

Even if I could force it to speak using Javascript commands, I wouldn't be able to 'watch' it to see when the synthesizer is finished speaking, or pause and resume the speech, like I can on PC and Mac
It's something I'd like to revisit post-launch, but for now it's just gonna be captioned 'robot voice'

That makes sense. TTS is commonly set up as a daemon, so while you can run an external process, you can't just monitor when the voice is supposed to have ended (unless there's a command for that as well...). But in that case I'd like to be able to disable the robot voice altogether.


Noted! I'll see if we can squeeze in a 'silent' option for Hypii in the next update :)