20 lines
628 B
C#
20 lines
628 B
C#
using Content.Shared._White.TTS;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server._White.TTS;
|
|
|
|
/// <summary>
|
|
/// Apply TTS for entity chat say messages
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
// ReSharper disable once InconsistentNaming
|
|
public sealed partial class TTSComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Prototype of used voice for TTS.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("voice", customTypeSerializer:typeof(PrototypeIdSerializer<TTSVoicePrototype>))]
|
|
public string VoicePrototypeId { get; set; } = "Eugene";
|
|
}
|