StreamTranslate
Namespace: Vercel.AI.Operations
public static class StreamTranslateStreams a speech translation. Maps to streamTranslate.
Inheritance: object
Fields
Section titled “Fields”MissingProviderMessage
Section titled “MissingProviderMessage”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
Methods
Section titled “Methods”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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product