GenerateSpeech
Namespace: Vercel.AI.Operations
public static class GenerateSpeechGenerates speech. Maps to generateSpeech.
Inheritance: object
Methods
Section titled “Methods”GenerateSpeechAsync(GenerateSpeechRequest, CancellationToken)
Section titled “GenerateSpeechAsync(GenerateSpeechRequest, CancellationToken)”public static Task<GenerateSpeechResult> GenerateSpeechAsync(GenerateSpeechRequest request, CancellationToken cancellationToken = default)Generates speech audio.
Parameters
| Name | Type | Description |
|---|---|---|
request |
GenerateSpeechRequest | |
cancellationToken |
CancellationToken |
Returns: Task<GenerateSpeechResult>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product