Skip to content

Commit

Permalink
remove tts from automatic announcements
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Feb 26, 2024
1 parent a3df706 commit 7036dcb
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions modular_ss220/text_to_speech/code/hear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@ GLOBAL_DATUM_INIT(default_announcer, /datum/tts_seed, new /datum/tts_seed/silero
. = ..()
speaker.cast_tts(src, message_pieces, H, TRUE, SOUND_EFFECT_RADIO)

/datum/announcer/Message(message, garbled_message, receivers, garbled_receivers)
var/datum/tts_seed/tts_seed = SStts220.tts_seeds[GLOB.default_announcer.name]
if(GLOB.ai_list.len)
var/mob/living/silicon/ai/AI = pick(GLOB.ai_list)
tts_seed = AI.get_tts_seed()
var/message_tts = message
var/garbled_message_tts = garbled_message
message = replace_characters(message, list("+"))
garbled_message = replace_characters(garbled_message, list("+"))
. = ..()
for(var/mob/M in receivers)
INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(tts_cast), null, M, message_tts, tts_seed, FALSE, SOUND_EFFECT_NONE, TTS_TRAIT_RATE_MEDIUM)
for(var/mob/M in garbled_receivers)
INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(tts_cast), null, M, garbled_message_tts, tts_seed, FALSE, SOUND_EFFECT_NONE, TTS_TRAIT_RATE_MEDIUM)

/atom/atom_say(message)
. = ..()
if(!message)
Expand Down

0 comments on commit 7036dcb

Please sign in to comment.