Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions code/modules/admin/verbs/debug.dm
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,14 @@ ADMIN_VERB(reestablish_tts_connection, R_DEBUG, "Re-establish Connection To TTS"
message_admins("[key_name_admin(user)] successfully re-established the connection to the TTS HTTP server.")
log_admin("[key_name(user)] successfully re-established the connection to the TTS HTTP server.")

// MASSMETA EDIT ADDITION START (tgtts)
if(success)
var/should_restart_subsystem = tgui_alert(user, "Additionally, would you like to restart TTS subsystem?", "Success!", list("Do it!", "Nah"), 15 SECONDS) == "Do it!"
if(should_restart_subsystem)
SStts.can_fire = TRUE // make that mf actually work
return
// MASSMETA EDIT ADDITION END (tgtts)

ADMIN_VERB(allow_browser_inspect, R_DEBUG, "Allow Browser Inspect", "Allow browser debugging via inspect", ADMIN_CATEGORY_DEBUG)
if(user.byond_version < 516)
to_chat(user, span_warning("You can only use this on 516!"))
Expand Down
23 changes: 23 additions & 0 deletions modular_meta/features/ntts-nd-tg-tts/code/verb.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ADMIN_VERB(change_announcements_voice, R_FUN, "Change Announcement Voice", "Tries to Change Announcement Voice if tts subsystem is available", ADMIN_CATEGORY_FUN)
if(!SStts.tts_enabled)
var/retry = tgui_alert(user, "Text To Speech is currently off, would you like to try re-establish connection", "Whoops!", list("Yes", "No")) == "Yes"
if(retry)
message_admins("[key_name_admin(user)] attempted to re-establish connection to the TTS HTTP server.")
log_admin("[key_name(user)] attempted to re-establish connection to the TTS HTTP server.")
SStts.establish_connection_to_tts()
if(!SStts.can_fire)
SStts.can_fire = TRUE

var/voice = tgui_input_list(user, "What voice to use?", "How are we speaking today?", SStts.available_speakers, SStts.centcom_voice)
if(isnull(voice)) // just in case admin presses cancel if they change their mind
return
if(voice == SStts.centcom_voice)
return
message_admins("[key_name(user)] has changed centcom announcement to from [SStts.centcom_voice] to [voice]")
log_admin("[key_name(user)] has changed centcom announcement to from [SStts.centcom_voice] to [voice]")
SStts.centcom_voice = voice





1 change: 1 addition & 0 deletions modular_meta/features/ntts-nd-tg-tts/includes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "code\middleware.dm"
#include "code\picker.dm"
#include "code\announcements.dm"
#include "code\verb.dm"

/datum/modpack/ntts_nd_tg_tts
id = "ntts-nd-tg-tts"
Expand Down
34 changes: 34 additions & 0 deletions modular_meta/features/ntts-nd-tg-tts/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Module ID: ntts-nd-tg-tts

### Description:

### TG Proc/File Changes:

- code\modules\admin\verbs\debug.dm
- code/__HELPERS/tts.dm
- code/__DEFINES/tts.dm
- code/controllers/subsystem/tts.dm
- code/modules/client/preferences/middleware/tts.dm
- tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/character_preferences/tts_voice.tsx
- tools/tts/tts/tts.py
- tools/tts/tts/tts_rvc_OPEN_AND_READ_ME_BEFORE_USING.py

### Modular Overrides:

TODO:

### Defines:

-

### TGUI Files:

- tgui/packages/tgui/interfaces/TTSVoicePicker.tsx
- tgui/packages/tgui/styles/interfaces/TTSVoicePicker.scss
- tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/character_preferences/tts_voice.tsx

### Credits:

- iamgoofball as the creator of tgstation tts;

- Bruh24, announcements, categories, other stuff;
Loading