AudioChunkStream
Namespace: Vercel.AI.Operations
public sealed class AudioChunkStreamAudio the model may take ownership of.
Inheritance: object
Properties
Section titled “Properties”CancelError
Section titled “CancelError”public Exception? CancelError { get; }Reason from a failed setup cancel.
Value: Exception
Locked
Section titled “Locked”public bool Locked { get; }True after the model takes a reader.
Value: bool
Methods
Section titled “Methods”Cancel(Exception)
Section titled “Cancel(Exception)”public void Cancel(Exception error)Cancels an unowned stream. A locked stream throws.
Parameters
| Name | Type | Description |
|---|---|---|
error |
Exception |
Lock()
Section titled “Lock()”public void Lock()Marks the stream as owned by the model.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product