Adds TTS to the game. Players can select their own voices in preferences. (#74775)

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
Co-authored-by: Iamgoofball <iamgoofball@gmail.com>
Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
Watermelon914
2023-05-16 00:21:54 +01:00
committed by GitHub
parent cb38c9d429
commit a98706ff8b
39 changed files with 783 additions and 32 deletions
+7 -1
View File
@@ -64,6 +64,7 @@
payment_department = ACCOUNT_SRV
light_power = 0.7
light_range = MINIMUM_USEFUL_LIGHT_RANGE
voice_filter = "aderivative"
/// Is the machine active (No sales pitches if off)!
var/active = 1
@@ -185,7 +186,6 @@
/// used for narcing on underages
var/obj/item/radio/sec_radio
/**
* Initialize the vending machine
*
@@ -208,6 +208,12 @@
. = ..()
wires = new /datum/wires/vending(src)
if(SStts.tts_enabled)
var/static/vendor_voice_by_type = list()
if(!vendor_voice_by_type[type])
vendor_voice_by_type[type] = pick(SStts.available_speakers)
voice = vendor_voice_by_type[type]
if(build_inv) //non-constructable vending machine
build_inventories()