UNPKG

@ai-stack/payloadcms

Version:

<p align="center"> <img alt="Payload AI Plugin" src="assets/payload-ai-intro.gif" width="100%" /> </p>

7 lines (6 loc) 304 B
import type { SpeechCreateParams } from 'openai/resources/audio/speech'; type OpenAITextToSpeechOptions = Exclude<SpeechCreateParams, 'input'>; export declare const generateVoice: (text: string, options: OpenAITextToSpeechOptions) => Promise<{ buffer: Buffer<ArrayBuffer>; } | undefined>; export {};