Skip to content

DeepgramTranscriptionResult

Namespace: Vercel.AI.Deepgram

public sealed class DeepgramTranscriptionResult

Deepgram transcription with word timings and response metadata.

Inheritance: object

View source

DeepgramTranscriptionResult(string, IReadOnlyList<TranscriptSegment>, string?, double?, IReadOnlyList<ModelWarning>, DeepgramResponse)

Section titled “DeepgramTranscriptionResult(string, IReadOnlyList<TranscriptSegment>, string?, double?, IReadOnlyList<ModelWarning>, DeepgramResponse)”
public DeepgramTranscriptionResult(string text, IReadOnlyList<TranscriptSegment> segments, string? language, double? durationInSeconds, IReadOnlyList<ModelWarning> warnings, DeepgramResponse response)

Creates a transcription result.

Parameters

Name Type Description
text string
segments IReadOnlyList<TranscriptSegment>
language string
durationInSeconds double?
warnings IReadOnlyList<ModelWarning>
response DeepgramResponse

View source

public double? DurationInSeconds { get; }

Audio duration from the response metadata.

Value: double?

View source

public string? Language { get; }

Detected language, when language detection ran.

Value: string

View source

public DeepgramResponse Response { get; }

Response metadata.

Value: DeepgramResponse

View source

public IReadOnlyList<TranscriptSegment> Segments { get; }

One segment per word.

Value: IReadOnlyList<TranscriptSegment>

View source

public string Text { get; }

Transcript of the first channel.

Value: string

View source

public IReadOnlyList<ModelWarning> Warnings { get; }

Warnings for ignored settings.

Value: IReadOnlyList<ModelWarning>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product