Skip to content

SpeakResponse

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The result of speech synthesis.

public sealed record SpeakResponse : IEquatable<SpeakResponse>

objectSpeakResponse

IEquatable<SpeakResponse>

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

public SpeakResponse()

Character-level timing. null when not requested via SpeakRequest.IncludeTimestamps, or when the provider does not support it.

public IReadOnlyList<SpeechAlignment>? Alignment { get; init; }

IReadOnlyList<SpeechAlignment>?

The saved attachment.

public required AttachmentDescriptor Attachment { get; init; }

AttachmentDescriptor

The billed character count.

public required int Characters { get; init; }

int

The computed amount. null if pricing is undefined.

public decimal? Cost { get; init; }

decimal?

The currency label.

public string? Currency { get; init; }

string?

Whether the character count is estimated.

public required bool IsEstimated { get; init; }

bool

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SpeakResponse? other)

other SpeakResponse?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SpeakResponse?, SpeakResponse?)

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

left SpeakResponse?

right SpeakResponse?

bool

operator !=(SpeakResponse?, SpeakResponse?)

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

left SpeakResponse?

right SpeakResponse?

bool