Skip to content

ElevenLabsTranscriptionResult

Namespace: Vercel.AI.ElevenLabs

public sealed class ElevenLabsTranscriptionResult

ElevenLabs transcription with word timings and response metadata.

Inheritance: object

View source

ElevenLabsTranscriptionResult(string, IReadOnlyList<TranscriptSegment>, string?, double?, IReadOnlyList<ModelWarning>, ElevenLabsResponse)

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

Creates a transcription result.

Parameters

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

View source

public double? DurationInSeconds { get; }

End time of the last word, in seconds.

Value: double?

View source

public string? Language { get; }

Detected language code.

Value: string

View source

public ElevenLabsResponse Response { get; }

Response metadata.

Value: ElevenLabsResponse

View source

public IReadOnlyList<TranscriptSegment> Segments { get; }

One segment per word or spacing item.

Value: IReadOnlyList<TranscriptSegment>

View source

public string Text { get; }

Full transcript.

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