Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTS Fix [Part 2] #726

Merged
merged 2 commits into from
Jan 11, 2023
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
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