Table of Contents

Class Channel

Namespace
Vonage.Voice
Assembly
Vonage.dll

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

Transcript IReadOnlyList<Transcript>

The list of transcript segments for this channel.

Duration int

The 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

int

Transcript

The list of transcript segments for this channel.

[JsonProperty("transcript")]
[JsonPropertyName("transcript")]
public IReadOnlyList<Transcript> Transcript { get; init; }

Property Value

IReadOnlyList<Transcript>

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.