import type * as core from "../../../../../core/index.mjs"; /** * @example * { * file: fs.createReadStream("/path/to/your/file"), * name: "name", * language: "language" * } */ export interface CreateVoiceRequest { /** * Reference audio file used to create the cloned voice. Supported formats: WAV, MP3, FLAC, OPUS, AAC, MULAW, ALAW, LINEAR16. WAV is recommended. * * Limits: max file size 50 MB. Recommended duration is 10-15 seconds, single speaker, minimal background noise. */ file: core.file.Uploadable; /** Display name for the cloned voice (1-100 characters). */ name: string; /** BCP-47 language code of the reference audio (e.g. `en-IN`, `hi-IN`). The transcript is auto-generated via ASR; you do not need to pass it. */ language: string; /** Optional speaking style for the cloned voice. */ style?: CreateVoiceRequest.Style; /** Optional gender tag for the cloned voice. */ gender?: CreateVoiceRequest.Gender; /** Remove background noise from the reference audio before saving. Uses ML-powered vocal extraction to isolate the speaker's voice. Defaults to `true`. Pass `false` to keep the original clip. */ remove_background_noise?: boolean; } export declare namespace CreateVoiceRequest { const Style: { readonly Conversational: "conversational"; readonly Audiobooks: "audiobooks"; readonly Entertainment: "entertainment"; readonly Sales: "sales"; }; type Style = (typeof Style)[keyof typeof Style]; const Gender: { readonly Male: "male"; readonly Female: "female"; }; type Gender = (typeof Gender)[keyof typeof Gender]; }