StreamSpeech
Namespace: Vercel.AI.Operations
public static class StreamSpeechStreams speech audio. Maps to experimental_streamSpeech.
Inheritance: object
Methods
Section titled “Methods”Start(StreamSpeechRequest, CancellationToken)
Section titled “Start(StreamSpeechRequest, CancellationToken)”public static StreamSpeechResult Start(StreamSpeechRequest request, CancellationToken cancellationToken = default)Starts a speech stream. doStream is invoked immediately.
Parameters
| Name | Type | Description |
|---|---|---|
request |
StreamSpeechRequest | |
cancellationToken |
CancellationToken |
Returns: StreamSpeechResult
Exceptions
| Type | Condition |
|---|---|
| UnsupportedFunctionalityException | The model does not support streaming speech. |
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product