Skip to content

TranscriptionStartEvent

Namespace: Vercel.AI.Operations

public sealed class TranscriptionStartEvent : IOperationStartEvent

Event passed to telemetry when CancellationToken) begins. Maps to TranscriptionStartEvent.

Inheritance: object

Implements: IOperationStartEvent

View source

TranscriptionStartEvent(string, string, string, TranscriptionAudioInfo, int?, IReadOnlyDictionary<string, string>?, JsonElement, IReadOnlyList<string>?, AudioFormat?, bool?, bool?, string?)

Section titled “TranscriptionStartEvent(string, string, string, TranscriptionAudioInfo, int?, IReadOnlyDictionary<string, string>?, JsonElement, IReadOnlyList<string>?, AudioFormat?, bool?, bool?, string?)”
public TranscriptionStartEvent(string callId, string provider, string modelId, TranscriptionAudioInfo audio, int? maxRetries, IReadOnlyDictionary<string, string>? headers, JsonElement providerOptions, IReadOnlyList<string>? timestampGranularities, AudioFormat? inputAudioFormat = null, bool? recordInputs = null, bool? recordOutputs = null, string? functionId = null)

Creates the event.

Parameters

Name Type Description
callId string
provider string
modelId string
audio TranscriptionAudioInfo
maxRetries int?
headers IReadOnlyDictionary<string, string>
providerOptions JsonElement
timestampGranularities IReadOnlyList<string>
inputAudioFormat AudioFormat
recordInputs bool?
recordOutputs bool?
functionId string

View source

public string? AiVersion { get; init; }

The version of the SDK that emitted the event. Set only on events sent to telemetry integrations. Maps to aiVersion.

Value: string

View source

public TranscriptionAudioInfo Audio { get; }

Input audio metadata.

Value: TranscriptionAudioInfo

View source

public string CallId { get; }

Unique identifier for this call.

Value: string

View source

public string? FunctionId { get; }

Copied from FunctionId.

Value: string

View source

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

Caller headers, without the user-agent suffix.

Value: IReadOnlyDictionary<string, string>

View source

public AudioFormat? InputAudioFormat { get; }

Raw input format. Always <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null"&gt;null&lt;/a> for non-streaming transcription.

Value: AudioFormat

View source

public int? MaxRetries { get; }

Resolved retry limit.

Value: int?

View source

public string ModelId { get; }

Model id.

Value: string

View source

public string OperationId { get; }

ai.transcribe.

Value: string

View source

public string Provider { get; }

Provider id.

Value: string

View source

public JsonElement ProviderOptions { get; }

Provider options.

Value: JsonElement

View source

public bool? RecordInputs { get; }

Copied from RecordInputs.

Value: bool?

View source

public bool? RecordOutputs { get; }

Copied from RecordOutputs.

Value: bool?

View source

public IReadOnlyList<string>? TimestampGranularities { get; }

Requested shared timing granularities, when specified.

Value: IReadOnlyList<string>

View source

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