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)