Class Channel
Represents a single audio channel in a transcription result, containing the transcript segments and total duration.
public record Channel : IEquatable<Channel>
- Inheritance
-
Channel
- Implements
- Inherited Members
Constructors
Channel(IReadOnlyList<Transcript>, int)
Represents a single audio channel in a transcription result, containing the transcript segments and total duration.
public Channel(IReadOnlyList<Transcript> Transcript, int Duration)
Parameters
TranscriptIReadOnlyList<Transcript>The list of transcript segments for this channel.
DurationintThe total duration of the audio channel in milliseconds.
Properties
Duration
The total duration of the audio channel in milliseconds.
[JsonProperty("duration")]
[JsonPropertyName("duration")]
public int Duration { get; init; }
Property Value
Transcript
The list of transcript segments for this channel.
[JsonProperty("transcript")]
[JsonPropertyName("transcript")]
public IReadOnlyList<Transcript> Transcript { get; init; }
Property Value
Methods
ExtractTranscript()
Concatenates all transcript sentences in this channel into a single string.
public string ExtractTranscript()
Returns
- string
The full transcript text for this channel.