Class TranscriptSentence
- Namespace
- AssemblyAI.Transcripts
- Assembly
- AssemblyAI.dll
public record TranscriptSentence : IEquatable<TranscriptSentence>
- Inheritance
-
TranscriptSentence
- Implements
- Inherited Members
Properties
Channel
The channel of the sentence. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially.
[JsonPropertyName("channel")]
public string? Channel { get; set; }
Property Value
Confidence
The confidence score for the transcript of this sentence
[JsonPropertyName("confidence")]
public required double Confidence { get; set; }
Property Value
End
The ending time, in milliseconds, for the sentence
[JsonPropertyName("end")]
public required int End { get; set; }
Property Value
Speaker
The speaker of the sentence if Speaker Diarization is enabled, else null
[JsonPropertyName("speaker")]
public string? Speaker { get; set; }
Property Value
Start
The starting time, in milliseconds, for the sentence
[JsonPropertyName("start")]
public required int Start { get; set; }
Property Value
Text
The transcript of the sentence
[JsonPropertyName("text")]
public required string Text { get; set; }
Property Value
Words
An array of words in the sentence
[JsonPropertyName("words")]
public IEnumerable<TranscriptWord> Words { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.