Skip to content

Commit

Permalink
TTS Fix [Part 2] (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
Morb0 authored Jan 11, 2023
1 parent a5439c9 commit 4daac3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Corvax/TTS/TTSSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ private async void OnRequestTTS(MsgRequestTTS ev)
private async void OnEntitySpoke(EntityUid uid, TTSComponent component, EntitySpokeEvent args)
{
if (!_isEnabled ||
args.OriginalMessage.Length > MaxMessageChars ||
args.Message.Length > MaxMessageChars ||
!_prototypeManager.TryIndex<TTSVoicePrototype>(component.VoicePrototypeId, out var protoVoice))
return;

var soundData = await GenerateTTS(args.OriginalMessage, protoVoice.Speaker);
var soundData = await GenerateTTS(args.Message, protoVoice.Speaker);
var ttsEvent = new PlayTTSEvent(uid, soundData);

// Say
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Humanoid/SharedHumanoidSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public abstract class SharedHumanoidSystem : EntitySystem
public static readonly Dictionary<Sex, string> DefaultSexVoice = new()
{
{Sex.Male, "Garithos"},
{Sex.Female, "Luna"},
{Sex.Female, "Maiev"},
{Sex.Unsexed, "Myron"},
};
// Corvax-TTS-End
Expand Down

0 comments on commit 4daac3a

Please sign in to comment.