Table of Contents

Class TTSEntry

Namespace
Cryville.EEW.TTS
Assembly
Cryville.EEW.TTS.dll
Represents an entry sent to a TTS worker.
public sealed record TTSEntry : IEquatable<TTSEntry>
Inheritance
TTSEntry
Implements
Inherited Members

Constructors

TTSEntry(CultureInfo, string?, string, int, string?, bool)

Represents an entry sent to a TTS worker.
public TTSEntry(CultureInfo Locale, string? Title, string Content, int Priority, string? Sound = null, bool IsRepeated = false)

Parameters

Locale CultureInfo
The locale of the content.
Title string
The title of the entry, if non-null, used when the entry is being repeated after interrupted; null if the entry should not be repeated after interrupted.
Content string
The content to be spoken.
Priority int
The priority (a lower number indicates higher priority).
Sound string
The sound to be played.
IsRepeated bool
Whether the entry is interrupted and to be repeated.

Properties

Content

The content to be spoken.
public string Content { get; init; }

Property Value

string

IsRepeated

Whether the entry is interrupted and to be repeated.
public bool IsRepeated { get; init; }

Property Value

bool

IssueTime

The time when the entry is created in UTC.
public DateTime IssueTime { get; set; }

Property Value

DateTime

Locale

The locale of the content.
public CultureInfo Locale { get; init; }

Property Value

CultureInfo

Priority

The priority (a lower number indicates higher priority).
public int Priority { get; }

Property Value

int

RevisionKey

Copied from RevisionKey.
public IReportRevisionKey? RevisionKey { get; }

Property Value

IReportRevisionKey

SecondaryEntry

The TTS entry to be inserted into the queue when this TTS entry starts being spoken.
public TTSEntry? SecondaryEntry { get; }

Property Value

TTSEntry

Sound

The sound to be played.
public string? Sound { get; set; }

Property Value

string

Title

The title of the entry, if non-null, used when the entry is being repeated after interrupted; null if the entry should not be repeated after interrupted.
public string? Title { get; init; }

Property Value

string

UnitKeys

Copied from UnitKeys.
public IReadOnlyCollection<IReportUnitKey>? UnitKeys { get; }

Property Value

IReadOnlyCollection<IReportUnitKey>

UrgentEntry

The TTS entry to be inserted into the queue before this TTS entry is inserted.
public TTSEntry? UrgentEntry { get; set; }

Property Value

TTSEntry