From e5bacfa76c1f409e0f2be70a06be3933941acc03 Mon Sep 17 00:00:00 2001 From: Aviu00 Date: Sun, 14 Jan 2024 07:19:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D1=8B,=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=B1=D0=B1=D0=B8=20=D0=BD=D0=B5=20=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=B0=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Client/White/TTS/HumanoidProfileEditor.TTS.cs | 2 +- Content.Server/White/TTS/TTSSystem.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/White/TTS/HumanoidProfileEditor.TTS.cs b/Content.Client/White/TTS/HumanoidProfileEditor.TTS.cs index 84e78f153e..d943fdf410 100644 --- a/Content.Client/White/TTS/HumanoidProfileEditor.TTS.cs +++ b/Content.Client/White/TTS/HumanoidProfileEditor.TTS.cs @@ -80,6 +80,6 @@ public sealed partial class HumanoidProfileEditor return; _ttsSys.StopAllStreams(); - _ttsMgr.RequestTTS(_previewDummy.Value, _random.Pick(_sampleText), Profile.Voice); + _ttsMgr.RequestTTS(_previewDummy.Value, IoCManager.Resolve().Pick(_sampleText), Profile.Voice); } } diff --git a/Content.Server/White/TTS/TTSSystem.cs b/Content.Server/White/TTS/TTSSystem.cs index 8acf69c240..06fb787ad3 100644 --- a/Content.Server/White/TTS/TTSSystem.cs +++ b/Content.Server/White/TTS/TTSSystem.cs @@ -48,7 +48,7 @@ public sealed partial class TTSSystem : EntitySystem var soundData = await GenerateTTS(ev.Uid, ev.Text, protoVoice.Speaker); if (soundData != null) - RaiseNetworkEvent(new PlayTTSEvent(ev.Uid, soundData), Filter.SinglePlayer(session)); + RaiseNetworkEvent(new PlayTTSEvent(GetNetEntity(ev.Uid), soundData), Filter.SinglePlayer(session)); } private async void OnEntitySpoke(EntityUid uid, TTSComponent component, EntitySpokeEvent args)