Skip to content

Commit

Permalink
tts change for synths, cling, ert
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed Sep 26, 2023
1 parent 1c8bca7 commit 0682b94
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion modular_ss220/text_to_speech/code/tts_seed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,28 @@
if(dna)
dna.tts_seed_dna = tts_seed

/mob/living/carbon/human/change_dna(datum/dna/new_dna, include_species_change, keep_flavor_text)
. = ..()
tts_seed = dna.tts_seed_dna

/client/create_response_team_part_1(new_gender, new_species, role, turf/spawn_location)
. = ..()
var/mob/living/ert_member = .
ert_member.change_voice()

/mob/living/silicon/verb/synth_change_voice()
set name = "Change Voice"
set desc = "Express yourself!"
set category = "Subsystems"
change_voice()

/atom/proc/select_voice(mob/user, silent_target = FALSE, override = FALSE)
if(!ismob(src) && !user)
return null
var/tts_test_str = "Так звучит мой голос."

var/tts_seeds
if(user && (check_rights(R_ADMIN, 0, user) || override))
if(user && (check_rights(R_ADMIN, FALSE, user) || override))
tts_seeds = SStts220.tts_seeds_names
else
tts_seeds = SStts220.get_available_seeds(src)
Expand Down

0 comments on commit 0682b94

Please sign in to comment.