Skip to content

AssemblyAITranscriptionResult

Namespace: Vercel.AI.AssemblyAI

public sealed class AssemblyAITranscriptionResult

AssemblyAI transcription, including word segments and audio-intelligence metadata.

Inheritance: object

View source

AssemblyAITranscriptionResult(string, IReadOnlyList<AssemblyAITranscriptionSegment>, string?, double?, IReadOnlyList<ModelWarning>, JsonElement?, AssemblyAITranscriptionResponse)

Section titled “AssemblyAITranscriptionResult(string, IReadOnlyList<AssemblyAITranscriptionSegment>, string?, double?, IReadOnlyList<ModelWarning>, JsonElement?, AssemblyAITranscriptionResponse)”
public AssemblyAITranscriptionResult(string text, IReadOnlyList<AssemblyAITranscriptionSegment> segments, string? language, double? durationInSeconds, IReadOnlyList<ModelWarning> warnings, JsonElement? providerMetadata, AssemblyAITranscriptionResponse response)

Creates a transcription result.

Parameters

Name Type Description
text string
segments IReadOnlyList<AssemblyAITranscriptionSegment>
language string
durationInSeconds double?
warnings IReadOnlyList<ModelWarning>
providerMetadata JsonElement?
response AssemblyAITranscriptionResponse

View source

public double? DurationInSeconds { get; }

Audio duration, or the last word end when the duration is missing.

Value: double?

View source

public string? Language { get; }

Language code reported on the transcript.

Value: string

View source

public JsonElement? ProviderMetadata { get; }

Diarization and audio-intelligence results under assemblyai, when the transcript has any. Timings inside these objects stay in milliseconds, as AssemblyAI returns them.

Value: JsonElement?

View source

public AssemblyAITranscriptionResponse Response { get; }

Response metadata.

Value: AssemblyAITranscriptionResponse

View source

public IReadOnlyList<AssemblyAITranscriptionSegment> Segments { get; }

Words with timings in seconds.

Value: IReadOnlyList<AssemblyAITranscriptionSegment>

View source

public string Text { get; }

Full transcript.

Value: string

View source

public IReadOnlyList<ModelWarning> Warnings { get; }

Warnings produced while building the request.

Value: IReadOnlyList<ModelWarning>

View source

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