import type * as SarvamAI from "../../../../index.mjs"; /** * @example * { * src_lang: "en-IN", * target_langs: ["hi-IN", "ta-IN", "te-IN"], * export_options: ["video", "audio", "srt"], * voice_cloning: true, * num_speakers: 1, * disable_watermark: true, * register: "modern-colloquial", * job_name: "segment1" * } */ export interface CreateDubbingJobRequest { /** Source language of the input media (BCP-47), or `auto` to detect it. Pass the language when you know it: detection is not always accurate. See [Specify Language Codes](/api/api-guides-tutorials/dubbing/how-to/specify-language-codes). */ src_lang: SarvamAI.DubbingSourceLanguage; /** One or more target languages to dub into. A single job dubs into all of them. */ target_langs: SarvamAI.DubbingLanguage[]; /** Which formats to auto-produce per target language. When provided, only the listed formats are auto-exported. Accepted values: `video` (dubbed MP4), `audio` (dubbed voice over the background, `.wav`), `audio_vocals` (dubbed voice alone, `.wav`), `srt` and `vtt` (subtitles of the dubbed text). When omitted, only the dubbed video (MP4) is produced; request audio and subtitles explicitly. Audio-only sources cannot produce a video, so `video` resolves to `audio` for them. */ export_options?: SarvamAI.DubbingExportOption[]; /** Clone the original speaker's voice. Set `false` to use a preset `voice_id` instead. */ voice_cloning?: boolean; /** Preset (prebuilt) voice to use when `voice_cloning` is `false`. Single speaker only. */ voice_id?: string; /** Speech pace preset, used when `voice_cloning` is false. */ pace_preset?: SarvamAI.DubbingPacePreset; /** Number of speakers in the source audio. */ num_speakers?: number; /** Set `true` for a watermark-free export. */ disable_watermark?: boolean; /** Translation-style / tone register. */ register?: SarvamAI.DubbingRegister; /** Keep `false` for API integrations so exports fire automatically once TTS finishes. When `true`, auto-export is suppressed: the pipeline completes but `export-status` stays empty until exports are triggered manually in Creator Studio. **Billing:** `true` charges the editor-flow rate (₹80/min on Starter — double the default API rate). See Pricing for plan-specific rates. */ editor_flow?: boolean; /** Human-readable label to identify the job later. Recommended (e.g. the source file's name). */ job_name?: string; }