SpeechStreamPart
Namespace: Vercel.AI.Operations
public sealed class SpeechStreamPartA part of FullStream.
Inheritance: object
Properties
Section titled “Properties”public byte[] Audio { get; set; }Audio chunk in generation order. Chunks are not necessarily standalone files; concatenate them to reconstruct the audio. A chunk is empty only when it carries ProviderMetadata (for example a turn marker).
Value: byte[]
AudioFormat
Section titled “AudioFormat”public SpeechAudioFormat? AudioFormat { get; set; }Format of an audio chunk.
Value: SpeechAudioFormat
public Exception? Error { get; set; }Provider error of an error part.
Value: Exception
public string? Id { get; set; }Provider identifier of an audio chunk.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; set; }Provider metadata of an audio chunk.
Value: JsonElement?
RawValue
Section titled “RawValue”public JsonElement? RawValue { get; set; }Raw provider chunk of a raw part.
Value: JsonElement?
public string Type { get; set; }Part type: audio, raw, or error.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product