Skip to content

GenerateSpeech

Namespace: Vercel.AI.Operations

public static class GenerateSpeech

Generates speech. Maps to generateSpeech.

Inheritance: object

View source

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>

View source

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