SpeechModelStreamPart
Namespace: Vercel.AI.Operations
public sealed class SpeechModelStreamPartA part emitted by a streaming speech model. Maps to SpeechModelV4StreamPart.
Inheritance: object
Properties
Section titled “Properties”public byte[]? Audio { get; set; }Raw audio bytes of an audio chunk.
Value: byte[]
AudioBase64
Section titled “AudioBase64”public string? AudioBase64 { get; set; }Base64-encoded raw audio bytes of an audio chunk. Used when Audio is null.
Value: string
AudioFormat
Section titled “AudioFormat”public SpeechAudioFormat? AudioFormat { get; set; }Format of an audio chunk.
Value: SpeechAudioFormat
public JsonElement? Body { get; set; }Response body of a response-metadata part.
Value: JsonElement?
public Exception? Error { get; set; }Non-fatal error of an error part. The stream continues.
Value: Exception
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; set; }Response headers of a response-metadata part.
Value: IReadOnlyDictionary<string, string>
public string? Id { get; set; }Optional provider identifier for an audio chunk.
Value: string
ModelId
Section titled “ModelId”public string? ModelId { get; set; }Response model id of a response-metadata part.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; set; }Provider metadata of an audio or finish part.
Value: JsonElement?
RawValue
Section titled “RawValue”public JsonElement? RawValue { get; set; }Raw provider chunk of a raw part.
Value: JsonElement?
Timestamp
Section titled “Timestamp”public DateTime? Timestamp { get; set; }Response timestamp of a response-metadata part.
Value: DateTime?
public string Type { get; set; }Part type: stream-start, audio, response-metadata, finish, raw, or error.
Value: string
public SpeechStreamUsage? Usage { get; set; }Usage of a finish part.
Value: SpeechStreamUsage
Warnings
Section titled “Warnings”public IReadOnlyList<OperationWarning>? Warnings { get; set; }Warnings carried by stream-start.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product