Files
Iamgoofball 33824ac7c1 TTS 3.0: Blips Rework, Radio TTS, Unknown Languages are Blips now (#95369)
## About The Pull Request

Re-did blips to be significantly nicer sounding and way better. Alien
speech you don't understand now comes through as Blips. If you have TTS
entirely disabled, you won't hear blips. Blips also now include more
customization options, and a dedicated Blips preview button by clicking
the leaf icon.

<img width="1749" height="354" alt="ApplicationFrameHost_5nKJEvaNV1"
src="https://github.com/user-attachments/assets/ef6c6b61-7c22-4a87-94c9-be50e89c65bb"
/>


https://github.com/user-attachments/assets/8cab7e55-6370-4e4e-99ba-ea2475569453

Radio TTS has been implemented. By default, you will hear all TTS over
the radio, but will not hear yourself over the radio. You can configure
this in Game Settings.


https://github.com/user-attachments/assets/94a44d84-17a9-4e6e-ac5c-3b800b11c159

<img width="743" height="193" alt="chrome_MOIcXaC2gh"
src="https://github.com/user-attachments/assets/907379b7-0689-486c-b29c-9be0a2259b05"
/>

The new TTS stack is located at
https://github.com/Iamgoofball/tgtts-qwen3 and is AGPLv3 licensed. The
new blips design was inspired by
https://github.com/joshxviii/animalese-typing.

The configuration to disable TTS on whispering has been removed, as it
is no longer needed and also interferes with radio TTS functioning
properly.

The Tram now utilizes TTS, and has had a general audio tune-up.


https://github.com/user-attachments/assets/f532d002-939c-43a1-95d0-0f0c43048997

TTS audio is now 3D and in space, see attached.


https://github.com/user-attachments/assets/b00df49a-9d1d-4b27-a8a0-d103099f5c7e

## Why It's Good For The Game

Quality of life improvements to the TTS system, long overdue. Also, TGMC
can migrate to this new method of doing radio audio so they aren't
sending double the TTS requests anymore.

## Changelog

🆑
add: Added support for Radio TTS. You will now hear players over the
radio via the TTS system.
add: Configure this in Game Options under the Sound tab.
sound: Re-did blips to be significantly nicer sounding and way better. 
sound: Alien speech you don't understand now comes through as Blips. If
you have TTS entirely disabled, you won't hear blips.
sound: The Tram and Computers now utilize the TTS system. Configs have
been added to set a consistent voice.
sound: TTS audio now utilizes 3D audio; you can now walk away from
people saying stupid shit and it gets quieter.
sound: Blips also now include more customization options, and a
dedicated Blips preview button by clicking the leaf icon.
del: The configuration to disable TTS on whispering has been removed, as
it is no longer needed and also interferes with radio TTS functioning
properly.
/🆑

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: Lucy <lucy@absolucy.moe>
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2026-06-15 18:54:24 -04:00

533 lines
16 KiB
Plaintext

/datum/config_entry/number_list/repeated_mode_adjust
/datum/config_entry/keyed_list/max_pop
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_NUM
/datum/config_entry/keyed_list/max_pop/ValidateListEntry(key_name)
return key_name in config.modes
/datum/config_entry/keyed_list/min_pop
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_NUM
/datum/config_entry/keyed_list/min_pop/ValidateListEntry(key_name, key_value)
return key_name in config.modes
/datum/config_entry/number/damage_multiplier
default = 1
integer = FALSE
/datum/config_entry/number/minimal_access_threshold //If the number of players is larger than this threshold, minimal access will be turned on.
min_val = 0
/datum/config_entry/flag/jobs_have_minimal_access //determines whether jobs use minimal access or expanded access.
/datum/config_entry/flag/assistants_have_maint_access
/datum/config_entry/flag/security_has_maint_access
/datum/config_entry/flag/everyone_has_maint_access
/datum/config_entry/number/depsec_access_level
default = 1
min_val = 0
max_val = 2
/datum/config_entry/flag/sec_start_brig //makes sec start in brig instead of dept sec posts
/datum/config_entry/flag/force_random_names
/datum/config_entry/flag/humans_need_surnames
/datum/config_entry/flag/allow_ai // allow ai job
/datum/config_entry/flag/allow_ai_multicam // allow ai multicamera mode
/datum/config_entry/flag/disable_human_mood
/datum/config_entry/flag/disable_secborg // disallow secborg model to be chosen.
/datum/config_entry/flag/disable_peaceborg
/datum/config_entry/flag/disable_warops
/datum/config_entry/number/traitor_scaling_coeff //how much does the amount of players get divided by to determine traitors
default = 6
integer = FALSE
min_val = 0
/datum/config_entry/number/brother_scaling_coeff //how many players per brother team
default = 25
integer = FALSE
min_val = 0
/// Determines how fast traitors scale in general.
/datum/config_entry/number/traitor_scaling_multiplier
default = 1
integer = FALSE
min_val = 0.01
/datum/config_entry/number/changeling_scaling_coeff //how much does the amount of players get divided by to determine changelings
default = 6
integer = FALSE
min_val = 0
/datum/config_entry/number/ecult_scaling_coeff //how much does the amount of players get divided by to determine e_cult
default = 6
integer = FALSE
min_val = 0
/datum/config_entry/number/security_scaling_coeff //how much does the amount of players get divided by to determine open security officer positions
default = 8
integer = FALSE
min_val = 0
/datum/config_entry/number/traitor_objectives_amount
default = 2
min_val = 0
/datum/config_entry/number/brother_objectives_amount
default = 2
min_val = 0
/datum/config_entry/flag/reactionary_explosions //If we use reactionary explosions, explosions that react to walls and doors
/datum/config_entry/flag/protect_roles_from_antagonist //If security and such can be traitor/cult/other
/datum/config_entry/flag/protect_assistant_from_antagonist //If assistants can be traitor/cult/other
/datum/config_entry/string/human_authority //Controls how to enforce human authority
default = "DISABLED"
/////////////////////////////////////////////////Outdated human authority settings
/datum/config_entry/flag/enforce_human_authority
deprecated_by = /datum/config_entry/string/human_authority
/datum/config_entry/flag/enforce_human_authority/DeprecationUpdate(value)
return value ? HUMAN_AUTHORITY_NON_HUMAN_WHITELIST : HUMAN_AUTHORITY_DISABLED
/datum/config_entry/flag/enforce_human_authority_on_everyone
deprecated_by = /datum/config_entry/string/human_authority
/datum/config_entry/flag/enforce_human_authority_on_everyone/DeprecationUpdate(value)
return value ? HUMAN_AUTHORITY_ENFORCED : HUMAN_AUTHORITY_DISABLED
/////////////////////////////////////////////////
/datum/config_entry/flag/allow_latejoin_antagonists // If late-joining players can be traitor/changeling
/datum/config_entry/number/shuttle_refuel_delay
default = 12000
integer = FALSE
min_val = 0
/datum/config_entry/keyed_list/roundstart_races //races you can play as from the get go.
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_FLAG
/datum/config_entry/keyed_list/roundstart_races/ValidateListEntry(key_name, key_value)
if(key_name in GLOB.species_list)
return TRUE
log_config("ERROR: [key_name] is not a valid race ID.")
return FALSE
/datum/config_entry/keyed_list/roundstart_no_hard_check // Species contained in this list will not cause existing characters with no-longer-roundstart species set to be resetted to the human race.
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_FLAG
/datum/config_entry/keyed_list/roundstart_no_hard_check/ValidateListEntry(key_name, key_value)
if(key_name in GLOB.species_list)
return TRUE
log_config("ERROR: [key_name] is not a valid race ID.")
return FALSE
/datum/config_entry/flag/no_summon_guns //No
/datum/config_entry/flag/no_summon_magic //Fun
/datum/config_entry/flag/no_summon_events //Allowed
/// If TRUE, no roundstart report is sent
/datum/config_entry/flag/no_intercept_report
default = FALSE
/// If TRUE, the roundstart report will not contain dynamic information.
/datum/config_entry/flag/no_dynamic_report
default = FALSE
/datum/config_entry/number/arrivals_shuttle_dock_window //Time from when a player late joins on the arrivals shuttle to when the shuttle docks on the station
default = 55
integer = FALSE
min_val = 30
/datum/config_entry/flag/arrivals_shuttle_require_undocked //Require the arrivals shuttle to be undocked before latejoiners can join
/datum/config_entry/flag/arrivals_shuttle_require_safe_latejoin //Require the arrivals shuttle to be operational in order for latejoiners to join
/datum/config_entry/string/alert_green
default = "All threats to the station have passed. Security may not have weapons visible, privacy laws are once again fully enforced."
/datum/config_entry/string/alert_blue_upto
default = "The station has received reliable information about possible hostile activity on the station. Security staff may have weapons visible, random searches are permitted."
/datum/config_entry/string/alert_blue_downto
default = "The immediate threat has passed. Security may no longer have weapons drawn at all times, but may continue to have them visible. Random searches are still allowed."
/datum/config_entry/string/alert_red_upto
default = "There is an immediate serious threat to the station. Security may have weapons unholstered at all times. Random searches are allowed and advised."
/datum/config_entry/string/alert_red_downto
default = "The station's destruction has been averted. There is still however an immediate serious threat to the station. Security may have weapons unholstered at all times, random searches are allowed and advised."
/datum/config_entry/string/alert_delta
default = "Destruction of the station is imminent. All crew are instructed to obey all instructions given by heads of staff. Any violations of these orders can be punished by death. This is not a drill."
/datum/config_entry/flag/roundstart_blue_alert
default = TRUE
/datum/config_entry/flag/revival_pod_plants
/datum/config_entry/number/revival_brain_life
default = -1
integer = FALSE
min_val = -1
/datum/config_entry/flag/ooc_during_round
// deprecated for unclear name
/datum/config_entry/number/commendations
integer = FALSE
deprecated_by = /datum/config_entry/number/commendation_percent_poll
/datum/config_entry/number/commendation_percent_poll
integer = FALSE
/datum/config_entry/flag/emojis
/datum/config_entry/keyed_list/multiplicative_movespeed
key_mode = KEY_MODE_TYPE
value_mode = VALUE_MODE_NUM
default = list( //DEFAULTS
/mob/living/simple_animal = 1,
/mob/living/silicon/pai = 1,
)
/datum/config_entry/keyed_list/multiplicative_movespeed/ValidateAndSet()
. = ..()
if(.)
update_config_movespeed_type_lookup(TRUE)
/datum/config_entry/keyed_list/multiplicative_movespeed/vv_edit_var(var_name, var_value)
. = ..()
if(. && (var_name == NAMEOF(src, config_entry_value)))
update_config_movespeed_type_lookup(TRUE)
/datum/config_entry/number/movedelay //Used for modifying movement speed for mobs.
abstract_type = /datum/config_entry/number/movedelay
/datum/config_entry/number/movedelay/ValidateAndSet()
. = ..()
if(.)
update_mob_config_movespeeds()
/datum/config_entry/number/movedelay/vv_edit_var(var_name, var_value)
. = ..()
if(. && (var_name == NAMEOF(src, config_entry_value)))
update_mob_config_movespeeds()
/datum/config_entry/number/movedelay/run_delay
integer = FALSE
/datum/config_entry/number/movedelay/run_delay/ValidateAndSet()
. = ..()
var/datum/movespeed_modifier/config_walk_run/M = get_cached_movespeed_modifier(/datum/movespeed_modifier/config_walk_run/run)
M.sync()
/datum/config_entry/number/movedelay/walk_delay
integer = FALSE
/datum/config_entry/number/movedelay/walk_delay/ValidateAndSet()
. = ..()
var/datum/movespeed_modifier/config_walk_run/M = get_cached_movespeed_modifier(/datum/movespeed_modifier/config_walk_run/walk)
M.sync()
/////////////////////////////////////////////////Outdated move delay
/datum/config_entry/number/outdated_movedelay
deprecated_by = /datum/config_entry/keyed_list/multiplicative_movespeed
abstract_type = /datum/config_entry/number/outdated_movedelay
integer = FALSE
var/movedelay_type
/datum/config_entry/number/outdated_movedelay/DeprecationUpdate(value)
return "[movedelay_type] [value]"
/datum/config_entry/number/outdated_movedelay/human_delay
movedelay_type = /mob/living/carbon/human
/datum/config_entry/number/outdated_movedelay/robot_delay
movedelay_type = /mob/living/silicon/robot
/datum/config_entry/number/outdated_movedelay/alien_delay
movedelay_type = /mob/living/carbon/alien
/datum/config_entry/number/outdated_movedelay/slime_delay
movedelay_type = /mob/living/basic/slime
/datum/config_entry/number/outdated_movedelay/animal_delay
movedelay_type = /mob/living/simple_animal
/////////////////////////////////////////////////
/datum/config_entry/flag/roundstart_away //Will random away mission be loaded.
/datum/config_entry/number/gateway_delay //How long the gateway takes before it activates. Default is half an hour. Only matters if roundstart_away is enabled.
default = 30 MINUTES
integer = FALSE
min_val = 0
/datum/config_entry/number/config_gateway_chance
integer = FALSE
min_val = 0
max_val = 100
///An override to gateway_delay for specific maps or start points
/datum/config_entry/keyed_list/gateway_delays_by_id
default = list(
AWAYSTART_BEACH = 5 MINUTES, //Chill RP zone
AWAYSTART_MUSEUM = 12 MINUTES, //Chill place with some cool puzzles and effects.
)
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_NUM
lowercase_key = FALSE //The macros are written the exact same way as their values, only without the quotation marks.
/datum/config_entry/flag/ghost_interaction
/datum/config_entry/flag/near_death_experience //If carbons can hear ghosts when unconscious and very close to death
/datum/config_entry/flag/silent_ai
/datum/config_entry/flag/silent_borg
/datum/config_entry/number/default_laws //Controls what laws the AI spawns with.
default = 0
min_val = 0
max_val = 4
/// Controls if Asimov Superiority appears as a perk for humans even if standard Asimov isn't the default AI lawset
/datum/config_entry/flag/silicon_asimov_superiority_override
/datum/config_entry/number/silicon_max_law_amount
default = 12
min_val = 0
/datum/config_entry/keyed_list/specified_laws
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_FLAG
/datum/config_entry/keyed_list/random_laws
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_FLAG
/datum/config_entry/keyed_list/law_weight
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_NUM
splitter = ","
/datum/config_entry/number/max_law_len
default = 1024
/datum/config_entry/number/overflow_cap
default = -1
min_val = -1
/datum/config_entry/string/overflow_job
default = JOB_ASSISTANT
/datum/config_entry/flag/grey_assistants
/datum/config_entry/number/lavaland_budget
default = 60
integer = FALSE
min_val = 0
/datum/config_entry/number/icemoon_budget
default = 90
integer = FALSE
min_val = 0
/datum/config_entry/number/space_budget
default = 16
integer = FALSE
min_val = 0
/datum/config_entry/flag/allow_random_events // Enables random events mid-round when set
/datum/config_entry/flag/forbid_station_traits
/datum/config_entry/number/events_frequency_lower
default = 2.5 MINUTES
min_val = 0
protection = CONFIG_ENTRY_LOCKED
/datum/config_entry/number/events_frequency_upper
default = 7 MINUTES
min_val = 0
protection = CONFIG_ENTRY_LOCKED
/datum/config_entry/number/mice_roundstart
default = 10
min_val = 0
/datum/config_entry/number/bombcap
default = 14
min_val = 4
/datum/config_entry/number/bombcap/ValidateAndSet(str_val)
. = ..()
if(.)
GLOB.MAX_EX_DEVESTATION_RANGE = round(config_entry_value / 4)
GLOB.MAX_EX_HEAVY_RANGE = round(config_entry_value / 2)
GLOB.MAX_EX_LIGHT_RANGE = config_entry_value
GLOB.MAX_EX_FLASH_RANGE = config_entry_value
GLOB.MAX_EX_FLAME_RANGE = config_entry_value
/datum/config_entry/number/emergency_shuttle_autocall_threshold
min_val = 0
max_val = 1
integer = FALSE
/datum/config_entry/flag/roundstart_traits
/datum/config_entry/flag/enable_night_shifts
/datum/config_entry/number/monkeycap
default = 64
min_val = 0
/datum/config_entry/number/ratcap
default = 64
min_val = 0
/datum/config_entry/number/maxfine
default = 1000
min_val = 0
/datum/config_entry/flag/dynamic_config_enabled
/datum/config_entry/flag/events_config_enabled
/datum/config_entry/string/drone_required_role
default = "Silicon"
/datum/config_entry/number/drone_role_playtime
default = 14
min_val = 0
integer = FALSE // It is in hours, but just in case one wants to specify minutes.
/// Will drones be restricted from interacting with the Supermatter and Atmospherics area?
/datum/config_entry/flag/drone_area_interaction_restrict
default = TRUE
/datum/config_entry/flag/native_fov
/datum/config_entry/flag/disallow_title_music
/datum/config_entry/number/station_goal_budget
default = 1
min_val = 0
integer = FALSE
/datum/config_entry/flag/disallow_circuit_sounds
/datum/config_entry/string/tts_http_url
protection = CONFIG_ENTRY_LOCKED
/datum/config_entry/string/tts_http_token
protection = CONFIG_ENTRY_LOCKED|CONFIG_ENTRY_HIDDEN
/datum/config_entry/string/tts_tram_announcer_override
/datum/config_entry/string/tts_computer_voice_override
/datum/config_entry/number/tts_max_concurrent_requests
default = 4
min_val = 1
/datum/config_entry/str_list/tts_voice_blacklist
/// Maximum timeout for http calls
/datum/config_entry/number/tts_http_timeout_seconds
default = 30
min_val = 0
/datum/config_entry/flag/give_tutorials_without_db
/datum/config_entry/string/new_player_alert_role_id
/datum/config_entry/keyed_list/positive_station_traits
default = list("0" = 8, "1" = 4, "2" = 2, "3" = 1)
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_NUM
/datum/config_entry/keyed_list/negative_station_traits
default = list("0" = 8, "1" = 4, "2" = 2, "3" = 1)
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_NUM
/datum/config_entry/keyed_list/neutral_station_traits
default = list("0" = 10, "1" = 10, "2" = 3, "2.5" = 1)
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_NUM
// Configs for the Quirk system
/// Disables Quirk point balancing for the server and clients.
/datum/config_entry/flag/disable_quirk_points
/datum/config_entry/flag/disable_quirk_points/ValidateAndSet(str_val)
. = ..()
if(.)
SSquirks.points_enabled = !config_entry_value
/// The maximum amount of positive quirks one character can have at roundstart.
/datum/config_entry/number/max_positive_quirks
default = 6
min_val = -1
/datum/config_entry/number/max_positive_quirks/ValidateAndSet(str_val)
. = ..()
if(.)
SSquirks.max_positive_quirks = config_entry_value
/// Freebie quirk points. Can't go negative because we have no way of enforcing a person has a quirk before they join.
/datum/config_entry/number/default_quirk_points
default = 2
min_val = 0
/datum/config_entry/number/default_quirk_points/ValidateAndSet(str_val)
. = ..()
if(.)
SSquirks.default_quirk_points = config_entry_value
/// Max personalities you can have at once
/datum/config_entry/number/max_personalities
default = 5
/**
* A config that skews with the random spawners weights
* If the value is lower than 1, it'll tend to even out the odds
* If higher than 1, it'll lean toward common spawns even more.
*/
/datum/config_entry/number/random_loot_weight_modifier
integer = FALSE
default = 1
min_val = 0.05
//Custom Shuttles
//Shuttle size limiter
/datum/config_entry/number/max_shuttle_count
default = 6
/datum/config_entry/number/max_shuttle_size
default = 250
/datum/config_entry/number/minimum_ascension_time
default = 0 // 1 minute
min_val = 0