From ea4f7595a21da35ea0693db7e482e20ee6f3c964 Mon Sep 17 00:00:00 2001 From: rhailrake <49613070+rhailrake@users.noreply.github.com> Date: Thu, 27 Apr 2023 08:03:44 +0600 Subject: [PATCH] [feat] TTS # Conflicts: # Content.Client/Options/UI/Tabs/AudioTab.xaml.cs # Content.Client/Preferences/UI/HumanoidProfileEditor.xaml # Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs # Content.Server/Database/ServerDbBase.cs # Content.Server/Entry/EntryPoint.cs # Content.Server/Humanoid/Systems/HumanoidAppearanceSystem.cs # Content.Server/IoC/ServerContentIoC.cs # Content.Server/VoiceMask/VoiceMaskSystem.cs # Resources/Prototypes/Entities/Mobs/Species/base.yml --- Content.Client/Options/UI/Tabs/AudioTab.xaml | 13 + .../Options/UI/Tabs/AudioTab.xaml.cs | 55 +- .../Preferences/UI/HumanoidProfileEditor.xaml | 6 + .../UI/HumanoidProfileEditor.xaml.cs | 26 + .../VoiceMask/VoiceMaskBoundUserInterface.cs | 4 +- .../VoiceMask/VoiceMaskNameChangeWindow.xaml | 4 + .../VoiceMaskNameChangeWindow.xaml.cs | 29 +- .../White/TTS/HumanoidProfileEditor.TTS.cs | 61 + Content.Client/White/TTS/TTSSystem.cs | 213 +++ .../Tests/Preferences/ServerDbSqliteTests.cs | 1 + .../20221214230019_TTSVoice.Designer.cs | 1338 +++++++++++++++++ .../Postgres/20221214230019_TTSVoice.cs | 26 + .../PostgresServerDbContextModelSnapshot.cs | 5 + .../20221214230014_TTSVoice.Designer.cs | 1272 ++++++++++++++++ .../Sqlite/20221214230014_TTSVoice.cs | 26 + .../SqliteServerDbContextModelSnapshot.cs | 5 + Content.Server.Database/Model.cs | 5 + Content.Server/Chat/Systems/ChatSystem.cs | 8 +- Content.Server/Database/ServerDbBase.cs | 6 + Content.Server/Entry/EntryPoint.cs | 4 +- .../Systems/HumanoidAppearanceSystem.cs | 155 +- Content.Server/IoC/ServerContentIoC.cs | 3 + Content.Server/Sandbox/SandboxSystem.cs | 4 +- .../Commands/UtkaStatusCommand.cs | 2 +- .../VoiceMask/VoiceMaskComponent.cs | 5 + .../VoiceMask/VoiceMaskSystem.Equip.cs | 2 + Content.Server/VoiceMask/VoiceMaskSystem.cs | 3 +- .../VoiceMask/VoiceMaskerComponent.cs | 1 + .../White/Commands/SetGlobalZoomCommand.cs | 38 - Content.Server/White/TTS/HumanoidSystemTTS.cs | 17 + Content.Server/White/TTS/TTSComponent.cs | 19 + Content.Server/White/TTS/TTSManager.cs | 177 +++ Content.Server/White/TTS/TTSSystem.SSML.cs | 29 + .../White/TTS/TTSSystem.Sanitize.cs | 288 ++++ Content.Server/White/TTS/TTSSystem.cs | 132 ++ Content.Server/White/TTS/VoiceMaskSystem.cs | 42 + .../Humanoid/HumanoidAppearanceComponent.cs | 5 + .../SharedHumanoidAppearanceSystem.cs | 7 + .../Preferences/HumanoidCharacterProfile.cs | 34 +- .../VoiceMask/SharedVoiceMaskSystem.cs | 4 +- Content.Shared/White/TTS/PlayTTSEvent.cs | 17 + Content.Shared/White/TTS/RequestTTSEvent.cs | 15 + .../White/TTS/SharedVoiceMaskSystem.cs | 14 + Content.Shared/White/TTS/TTSVoicePrototype.cs | 34 + Content.Shared/White/WhiteCVars.cs | 28 + .../Prototypes/Entities/Mobs/Species/base.yml | 6 + Resources/Prototypes/White/tts-voices.yml | 29 + 47 files changed, 4162 insertions(+), 55 deletions(-) create mode 100644 Content.Client/White/TTS/HumanoidProfileEditor.TTS.cs create mode 100644 Content.Client/White/TTS/TTSSystem.cs create mode 100644 Content.Server.Database/Migrations/Postgres/20221214230019_TTSVoice.Designer.cs create mode 100644 Content.Server.Database/Migrations/Postgres/20221214230019_TTSVoice.cs create mode 100644 Content.Server.Database/Migrations/Sqlite/20221214230014_TTSVoice.Designer.cs create mode 100644 Content.Server.Database/Migrations/Sqlite/20221214230014_TTSVoice.cs delete mode 100644 Content.Server/White/Commands/SetGlobalZoomCommand.cs create mode 100644 Content.Server/White/TTS/HumanoidSystemTTS.cs create mode 100644 Content.Server/White/TTS/TTSComponent.cs create mode 100644 Content.Server/White/TTS/TTSManager.cs create mode 100644 Content.Server/White/TTS/TTSSystem.SSML.cs create mode 100644 Content.Server/White/TTS/TTSSystem.Sanitize.cs create mode 100644 Content.Server/White/TTS/TTSSystem.cs create mode 100644 Content.Server/White/TTS/VoiceMaskSystem.cs create mode 100644 Content.Shared/White/TTS/PlayTTSEvent.cs create mode 100644 Content.Shared/White/TTS/RequestTTSEvent.cs create mode 100644 Content.Shared/White/TTS/SharedVoiceMaskSystem.cs create mode 100644 Content.Shared/White/TTS/TTSVoicePrototype.cs create mode 100644 Resources/Prototypes/White/tts-voices.yml diff --git a/Content.Client/Options/UI/Tabs/AudioTab.xaml b/Content.Client/Options/UI/Tabs/AudioTab.xaml index e54b0dc34e..638c2d0e1b 100644 --- a/Content.Client/Options/UI/Tabs/AudioTab.xaml +++ b/Content.Client/Options/UI/Tabs/AudioTab.xaml @@ -61,6 +61,19 @@