Skip to content

StreamTranslate

Namespace: Vercel.AI.Operations

public static class StreamTranslate

Streams a speech translation. Maps to streamTranslate.

Inheritance: object

View source

public const string MissingProviderMessage = "The default provider does not support speech translation models. Please pass a provider model instance that implements the experimental speech translation model specification."

Message thrown when the default provider has no speech translation models.

Value: string

View source

Start(StreamTranslateRequest, CancellationToken)

Section titled “Start(StreamTranslateRequest, CancellationToken)”
public static StreamTranslateResult Start(StreamTranslateRequest request, CancellationToken cancellationToken = default)

Starts a translation stream. doStream is invoked immediately.

Parameters

Name Type Description
request StreamTranslateRequest
cancellationToken CancellationToken

Returns: StreamTranslateResult

View source

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