TranscriptionStartEvent
Namespace: Vercel.AI.Operations
public sealed class TranscriptionStartEvent : IOperationStartEventEvent passed to telemetry when CancellationToken) begins. Maps to TranscriptionStartEvent.
Inheritance: object
Implements: IOperationStartEvent
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”AiVersion
Section titled “AiVersion”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
public TranscriptionAudioInfo Audio { get; }Input audio metadata.
Value: TranscriptionAudioInfo
CallId
Section titled “CallId”public string CallId { get; }Unique identifier for this call.
Value: string
FunctionId
Section titled “FunctionId”public string? FunctionId { get; }Copied from FunctionId.
Value: string
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; }Caller headers, without the user-agent suffix.
Value: IReadOnlyDictionary<string, string>
InputAudioFormat
Section titled “InputAudioFormat”public AudioFormat? InputAudioFormat { get; }Raw input format. Always <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> for non-streaming transcription.
Value: AudioFormat
MaxRetries
Section titled “MaxRetries”public int? MaxRetries { get; }Resolved retry limit.
Value: int?
ModelId
Section titled “ModelId”public string ModelId { get; }Model id.
Value: string
OperationId
Section titled “OperationId”public string OperationId { get; }ai.transcribe.
Value: string
Provider
Section titled “Provider”public string Provider { get; }Provider id.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement ProviderOptions { get; }Provider options.
Value: JsonElement
RecordInputs
Section titled “RecordInputs”public bool? RecordInputs { get; }Copied from RecordInputs.
Value: bool?
RecordOutputs
Section titled “RecordOutputs”public bool? RecordOutputs { get; }Copied from RecordOutputs.
Value: bool?
TimestampGranularities
Section titled “TimestampGranularities”public IReadOnlyList<string>? TimestampGranularities { get; }Requested shared timing granularities, when specified.
Value: IReadOnlyList<string>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product