Skip to content

SpeechAlignment

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

One character’s position in the generated audio.

public sealed record SpeechAlignment : IEquatable<SpeechAlignment>

objectSpeechAlignment

IEquatable<SpeechAlignment>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Character-level, not word-level: this is the granularity ElevenLabs’ .../with-timestamps endpoint reports (verified against its published OpenAPI document, 2026-08-19). Grouping characters into words or producing a subtitle format (SRT/VTT) is left to the consumer: the raw form is enough.

public SpeechAlignment()

The character, as sent in the request text.

public required string Character { get; init; }

string

When the character ends, relative to the start of the audio.

public required TimeSpan End { get; init; }

TimeSpan

When the character starts, relative to the start of the audio.

public required TimeSpan Start { get; init; }

TimeSpan

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SpeechAlignment? other)

other SpeechAlignment?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SpeechAlignment?, SpeechAlignment?)

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

left SpeechAlignment?

right SpeechAlignment?

bool

operator !=(SpeechAlignment?, SpeechAlignment?)

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

left SpeechAlignment?

right SpeechAlignment?

bool