/** * 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 Voices { interface Options { environment?: core.Supplier; xiApiKey?: core.Supplier; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } /** * Access to voices created either by you or us. */ export declare class Voices { protected readonly _options: Voices.Options; constructor(_options?: Voices.Options); /** * Gets a list of all available voices for a user. * @throws {@link ElevenLabs.UnprocessableEntityError} * * @example * await elevenLabs.voices.getAll() */ getAll(requestOptions?: Voices.RequestOptions): Promise; /** * Gets the default settings for voices. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app. */ getDefaultSettings(requestOptions?: Voices.RequestOptions): Promise; /** * Returns the settings for a specific voice. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app. * @throws {@link ElevenLabs.UnprocessableEntityError} */ getSettings(voiceId: string, requestOptions?: Voices.RequestOptions): Promise; /** * Returns metadata about a specific voice. * @throws {@link ElevenLabs.UnprocessableEntityError} */ get(voiceId: string, request?: ElevenLabs.VoicesGetRequest, requestOptions?: Voices.RequestOptions): Promise; /** * Deletes a voice by its ID. * @throws {@link ElevenLabs.UnprocessableEntityError} */ deleteV1Voices(voiceId: string, requestOptions?: Voices.RequestOptions): Promise; /** * Edit your settings for a specific voice. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app. * @throws {@link ElevenLabs.UnprocessableEntityError} */ editSettings(voiceId: string, request: ElevenLabs.VoiceSettings, requestOptions?: Voices.RequestOptions): Promise; /** * Add a new voice to your collection of voices in VoiceLab. * @throws {@link ElevenLabs.UnprocessableEntityError} */ add(request: ElevenLabs.BodyAddVoiceV1VoicesAddPost, requestOptions?: Voices.RequestOptions): Promise; /** * Edit a voice created by you. * @throws {@link ElevenLabs.UnprocessableEntityError} */ edit(voiceId: string, request: ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost, requestOptions?: Voices.RequestOptions): Promise; }