Sanctum 2
text to speech voice changing
How is it done?
Originally posted by ScienceDiscoverer:
Here is how you can do it!
TTS is same engine as in Moon Base Alpha, so all commands work the same. For example, [:nb] changes voice to kid's voice. But there is a catch in Sanctum 2. When in MP, every time other player speaks in chat, your voice will be reset to default one (except for voice tempo). To counteract this and have permanent voice you will need to use programs like AutoHotkey or Clickermann with a script that will automatically insert voice you need every time you press T in game. For CLickermann the script will look like this:

$voice[0] = "[:nb]" //teenager $voice[1] = "[:nr]" //same as above $voice[2] = "[:nv]" //same as above $voice[3] = "[:nw]" //same as above $voice[4] = "[:nu]" //same as above $voice[5] = "[:nh]" //guy with low voice $voice[6] = "[:nk]" //4 year old kid $voice[7] = "[:nf]" //this guy sounds like he ran out of air/ breathing problems $voice[8] = "[:np]" //standard voice $voice[9] = "[:nd]" //soft quiet mans voice $t_prsed = 0 $cur_voice = 0 WHILE(1) IF(ISKEYDOWN(#ENTER) = 1) $t_prsed = 0 END_IF IF((ISKEYDOWN(#L) = 1) & ($t_prsed = 0)) WAITMS(100) $cur_voice = $cur_voice + 1 IF($cur_voice > 9) $cur_voice = 0 END_IF END_IF IF((ISKEYDOWN(#T) = 1) & ($t_prsed = 0)) WAITMS(60) TOCLIP ($voice[$cur_voice]) KEYDOWN (#CTRL) // Ctrl+V WAITMS (50) KEYPRESS (#V) KEYUP (#CTRL) $t_prsed = 1 END_IF WAITMS(40) END_CYC

This one will also let you change voice with just a press of L button in game, without changing the script, so it can be made simpler. I guess it won't be much problem to adapt if for AutoHotkey if you prefer it.

Other commands and voice changers:
https://steamcommunity.com/sharedfiles/filedetails/?id=128648903
< >
Showing 1-3 of 3 comments
The author of this thread has indicated that this post answers the original topic.
ScienceDiscoverer Mar 18, 2022 @ 4:55am 
Here is how you can do it!
TTS is same engine as in Moon Base Alpha, so all commands work the same. For example, [:nb] changes voice to kid's voice. But there is a catch in Sanctum 2. When in MP, every time other player speaks in chat, your voice will be reset to default one (except for voice tempo). To counteract this and have permanent voice you will need to use programs like AutoHotkey or Clickermann with a script that will automatically insert voice you need every time you press T in game. For CLickermann the script will look like this:

$voice[0] = "[:nb]" //teenager $voice[1] = "[:nr]" //same as above $voice[2] = "[:nv]" //same as above $voice[3] = "[:nw]" //same as above $voice[4] = "[:nu]" //same as above $voice[5] = "[:nh]" //guy with low voice $voice[6] = "[:nk]" //4 year old kid $voice[7] = "[:nf]" //this guy sounds like he ran out of air/ breathing problems $voice[8] = "[:np]" //standard voice $voice[9] = "[:nd]" //soft quiet mans voice $t_prsed = 0 $cur_voice = 0 WHILE(1) IF(ISKEYDOWN(#ENTER) = 1) $t_prsed = 0 END_IF IF((ISKEYDOWN(#L) = 1) & ($t_prsed = 0)) WAITMS(100) $cur_voice = $cur_voice + 1 IF($cur_voice > 9) $cur_voice = 0 END_IF END_IF IF((ISKEYDOWN(#T) = 1) & ($t_prsed = 0)) WAITMS(60) TOCLIP ($voice[$cur_voice]) KEYDOWN (#CTRL) // Ctrl+V WAITMS (50) KEYPRESS (#V) KEYUP (#CTRL) $t_prsed = 1 END_IF WAITMS(40) END_CYC

This one will also let you change voice with just a press of L button in game, without changing the script, so it can be made simpler. I guess it won't be much problem to adapt if for AutoHotkey if you prefer it.

Other commands and voice changers:
https://steamcommunity.com/sharedfiles/filedetails/?id=128648903
Last edited by ScienceDiscoverer; Mar 18, 2022 @ 4:59am
Well I haven't played the game in...5 years :(
ScienceDiscoverer Mar 19, 2022 @ 12:18am 
Originally posted by Captain facetime skateboard guy:
Well I haven't played the game in...5 years :(
:steamsad:
Lets hope it might help someone in the future! Eheh...
< >
Showing 1-3 of 3 comments
Per page: 1530 50