Skip to content
Tracon

SpeechDialogueAudio

Namespace Tracon · Assembly Tracon.Abstractions.dll

The audio of a dialogue and the time range of each turn.

public sealed class SpeechDialogueAudio
Inheritance
object ← SpeechDialogueAudio
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

A class, not a record, for the reason SpeechAudio gives: a generated ToString or equality must not walk the audio.

public SpeechDialogueAudio()

Gets the audio of the whole dialogue.

public required SpeechAudio Audio { get; init; }

SpeechAudio

SpeechAudio.CharactersBilled, SpeechAudio.UsageSource and SpeechAudio.ModelId describe the whole request. SpeechAudio.Alignment times the turns’ texts joined in order, with no separator.

Gets the time range of each spoken part, in order; null when SpeechDialogueRequest.IncludeTimestamps was not set, when the provider does not report them, or when the provider’s report does not match the turns.

public IReadOnlyList<SpeechDialogueSegment>? Segments { get; init; }

IReadOnlyList<SpeechDialogueSegment>?

One turn can have more than one segment. A report that names a turn the request did not have or a voice the turn did not use, that leaves a turn without a segment, or that is out of order is dropped whole rather than mapped to the wrong turn.