Skip to content

TranscriptionResult

Namespace: Vercel.AI.Provider

public sealed class TranscriptionResult

Transcription result.

Inheritance: object

View source

public TranscriptionResult(string text)

Creates a transcription with no usage.

Parameters

Name Type Description
text string

View source

public TranscriptionResult(string text, AudioUsage? usage)

Creates a transcription.

Parameters

Name Type Description
text string
usage AudioUsage

View source

public string Text { get; }

Transcript text.

Value: string

View source

public AudioUsage? Usage { get; }

Usage reported by the call. Absent unless the caller supplies it.

Value: AudioUsage

View source

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