Skip to content

StreamSpeech

Namespace: Vercel.AI.Operations

public static class StreamSpeech

Streams speech audio. Maps to experimental_streamSpeech.

Inheritance: object

View source

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.

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product