Skip to content
Tracon

SpeechDialogueSegment

Namespace Tracon · Assembly Tracon.Abstractions.dll

The time range one turn takes in a dialogue’s audio.

public sealed record SpeechDialogueSegment : IEquatable<SpeechDialogueSegment>
Inheritance
object ← SpeechDialogueSegment
Implements
IEquatable<SpeechDialogueSegment>
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
public SpeechDialogueSegment()

Gets when the turn ends, relative to the start of the audio.

public required TimeSpan End { get; init; }

TimeSpan

Gets when the turn starts, relative to the start of the audio.

public required TimeSpan Start { get; init; }

TimeSpan

Gets the zero-based index of the turn in SpeechDialogueRequest.Turns.

public required int TurnIndex { get; init; }

int

Gets the voice that spoke the turn.

public required string VoiceId { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SpeechDialogueSegment? other)

other SpeechDialogueSegment?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SpeechDialogueSegment?, SpeechDialogueSegment?)

Section titled “ operator ==(SpeechDialogueSegment?, SpeechDialogueSegment?)”
public static bool operator ==(SpeechDialogueSegment? left, SpeechDialogueSegment? right)

left SpeechDialogueSegment?

right SpeechDialogueSegment?

bool

operator !=(SpeechDialogueSegment?, SpeechDialogueSegment?)

Section titled “ operator !=(SpeechDialogueSegment?, SpeechDialogueSegment?)”
public static bool operator !=(SpeechDialogueSegment? left, SpeechDialogueSegment? right)

left SpeechDialogueSegment?

right SpeechDialogueSegment?

bool