/** * 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 "../../../index"; import * as stream from "stream"; export declare namespace SpeechToSpeech { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; /** Override the xi-api-key header */ apiKey?: core.Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the xi-api-key header */ apiKey?: string | undefined; /** Additional headers to include in the request. */ headers?: Record; } } export declare class SpeechToSpeech { protected readonly _options: SpeechToSpeech.Options; constructor(_options?: SpeechToSpeech.Options); /** * Transform audio from one voice to another. Maintain full control over emotion, timing and delivery. * @throws {@link ElevenLabs.UnprocessableEntityError} */ convert(voiceId: string, request: ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost, requestOptions?: SpeechToSpeech.RequestOptions): Promise; /** * Stream audio from one voice to another. Maintain full control over emotion, timing and delivery. * @throws {@link ElevenLabs.UnprocessableEntityError} */ convertAsStream(voiceId: string, request: ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost, requestOptions?: SpeechToSpeech.RequestOptions): Promise; }