Skip to content

TranscriptionStreamCall

Namespace: Vercel.AI.Operations

public sealed class TranscriptionStreamCall

Arguments for streaming transcription.

Inheritance: object

View source

TranscriptionStreamCall(AudioChunkStream, string, JsonElement, IReadOnlyDictionary<string, string>, bool?, CancellationToken)

Section titled “TranscriptionStreamCall(AudioChunkStream, string, JsonElement, IReadOnlyDictionary<string, string>, bool?, CancellationToken)”
public TranscriptionStreamCall(AudioChunkStream audio, string inputAudioFormat, JsonElement providerOptions, IReadOnlyDictionary<string, string> headers, bool? includeRawChunks, CancellationToken cancellationToken)

Creates a stream call.

Parameters

Name Type Description
audio AudioChunkStream
inputAudioFormat string
providerOptions JsonElement
headers IReadOnlyDictionary<string, string>
includeRawChunks bool?
cancellationToken CancellationToken

View source

public AudioChunkStream Audio { get; }

Audio stream.

Value: AudioChunkStream

View source

public CancellationToken CancellationToken { get; }

Cancellation token shared with fullStream cancellation.

Value: CancellationToken

View source

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

Headers including the user-agent suffix.

Value: IReadOnlyDictionary<string, string>

View source

public bool? IncludeRawChunks { get; }

When true, raw parts are requested.

Value: bool?

View source

public string InputAudioFormat { get; }

Input audio format.

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