Skip to content
Tracon

SpeechDialogueTurn

Namespace Tracon · Assembly Tracon.Abstractions.dll

One turn of a dialogue: a text and the voice that speaks it.

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

Gets the text to speak.

public required string Text { get; init; }

string

Sent as written. A provider’s inline tags (for example ElevenLabs’ [laughs]) pass through unchanged and count toward the character limit.

Gets the identifier of the voice that speaks the text.

public required string VoiceId { get; init; }

string

Required: a dialogue turn has no default voice.

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SpeechDialogueTurn? other)

other SpeechDialogueTurn?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SpeechDialogueTurn?, SpeechDialogueTurn?)

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

left SpeechDialogueTurn?

right SpeechDialogueTurn?

bool

operator !=(SpeechDialogueTurn?, SpeechDialogueTurn?)

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

left SpeechDialogueTurn?

right SpeechDialogueTurn?

bool