TranscriptionModelCall
Namespace: Vercel.AI.Operations
public sealed class TranscriptionModelCallArguments for a transcription doGenerate.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”public byte[] Audio { get; }Audio bytes.
Value: byte[]
CancellationToken
Section titled “CancellationToken”public CancellationToken CancellationToken { get; }Cancellation token.
Value: CancellationToken
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Headers including the user-agent suffix.
Value: IReadOnlyDictionary<string, string>
MediaType
Section titled “MediaType”public string MediaType { get; }Detected media type, or audio/wav.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement ProviderOptions { get; }Provider options.
Value: JsonElement
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product