Skip to content

TranscriptionModelCall

Namespace: Vercel.AI.Operations

public sealed class TranscriptionModelCall

Arguments for a transcription doGenerate.

Inheritance: object

View source

TranscriptionModelCall(byte[], string, JsonElement, IReadOnlyDictionary<string, string>, CancellationToken)

Section titled “TranscriptionModelCall(byte[], string, JsonElement, IReadOnlyDictionary<string, string>, CancellationToken)”
public TranscriptionModelCall(byte[] audio, string mediaType, JsonElement providerOptions, IReadOnlyDictionary<string, string> headers, CancellationToken cancellationToken)

Creates a call.

Parameters

Name Type Description
audio byte[]
mediaType string
providerOptions JsonElement
headers IReadOnlyDictionary<string, string>
cancellationToken CancellationToken

View source

public byte[] Audio { get; }

Audio bytes.

Value: byte[]

View source

public CancellationToken CancellationToken { get; }

Cancellation token.

Value: CancellationToken

View source

public IReadOnlyDictionary<string, string> Headers { get; }

Headers including the user-agent suffix.

Value: IReadOnlyDictionary<string, string>

View source

public string MediaType { get; }

Detected media type, or audio/wav.

Value: string

View source

public JsonElement ProviderOptions { get; }

Provider options.

Value: JsonElement

View source

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