/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as ElevenLabs from "../../.."; export declare namespace TextToSpeech { interface Options { environment?: core.Supplier; xiApiKey?: core.Supplier; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } /** * Convert text into lifelike speech using a voice of your choice. */ export declare class TextToSpeech { protected readonly _options: TextToSpeech.Options; constructor(_options?: TextToSpeech.Options); /** * Converts text into speech using a voice of your choice and returns audio. */ convert(voiceId: string, request: ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost, requestOptions?: TextToSpeech.RequestOptions): Promise; /** * Converts text into speech using a voice of your choice and returns audio as an audio stream. */ convertAsStream(voiceId: string, request: ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdStreamPost, requestOptions?: TextToSpeech.RequestOptions): Promise; }