Class DiarizedTranscriptSegment
- Namespace
- VisioForge.Core.Types.X.AI
- Assembly
- VisioForge.Core.dll
A transcript segment labeled with the speaker who most overlaps it — the output of VisioForge.Core.Types.X.AI.DiarizedTranscriptBuilder merging a speech-to-text transcript with a diarization timeline.
public class DiarizedTranscriptSegmentInheritance
Inherited Members
Constructors
DiarizedTranscriptSegment(TimeSpan, TimeSpan, string, int)
Initializes a new instance of the VisioForge.Core.Types.X.AI.DiarizedTranscriptSegment class.
public DiarizedTranscriptSegment(TimeSpan start, TimeSpan end, string text, int speakerId)Parameters
startTimeSpan-
The start time of the transcript segment.
endTimeSpan-
The end time of the transcript segment.
textstring-
The recognized text.
speakerIdint-
The attributed speaker id, or -1 when no diarization turn overlaps the segment.
Properties
End
Gets the end time of the transcript segment.
public TimeSpan End { get; }Property Value
SpeakerId
Gets the attributed speaker id, or -1 when no diarization turn overlaps this segment.
public int SpeakerId { get; }Property Value
Start
Gets the start time of the transcript segment.
public TimeSpan Start { get; }Property Value
Text
Gets the recognized text.
public string Text { get; }Property Value
Methods
ToString()
Returns a readable representation of the labeled segment.
public override string ToString()Returns
- string
-
A string with the speaker label, time span, and text.