Skip to content

SpeechTranscript

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The result of speech-to-text conversion.

public sealed record SpeechTranscript : IEquatable<SpeechTranscript>

objectSpeechTranscript

IEquatable<SpeechTranscript>

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

public SpeechTranscript()

The duration of the transcribed audio. Cost is computed from this.

public TimeSpan? AudioDuration { get; init; }

TimeSpan?

The detected language’s code.

public string? LanguageCode { get; init; }

string?

The confidence of language detection (0-1).

public double? LanguageProbability { get; init; }

double?

The transcribed text.

public required string Text { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(SpeechTranscript? other)

other SpeechTranscript?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(SpeechTranscript?, SpeechTranscript?)

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

left SpeechTranscript?

right SpeechTranscript?

bool

operator !=(SpeechTranscript?, SpeechTranscript?)

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

left SpeechTranscript?

right SpeechTranscript?

bool