import type * as SarvamAI from "../../../../index.js"; /** * @example * { * text: "Welcome to Sarvam AI!", * language_code: "hi-IN" * } */ export interface TextToSpeechRequest { /** * The text(s) to be converted into speech. * * **Features:** * - Supports code-mixed text (English and Indic languages) * * **Model-specific limits:** * - **bulbul:v3:** Max 2500 characters * - **bulbul:v4-flash:** Max 2500 characters * - **bulbul:v2:** Max 1500 characters * * **Important Note:** * - For numbers larger than 4 digits, use commas (e.g., '10,000' instead of '10000') * - This ensures proper pronunciation as a whole number */ text: string; /** The language code in BCP-47 format. */ language_code: SarvamAI.TextToSpeechLanguage; /** * The speaker voice to be used for the output audio. * * **Default:** shubh (for bulbul:v3), anushka (for bulbul:v2), shubh_enhi_ads (for bulbul:v4-flash). For v4, you can omit `speaker` to use `shubh_enhi_ads`, or set any persona ID from the Voices guide (v3/v2 short names are not valid). * * **Model Compatibility (Speakers compatible with respective model):** * - **bulbul:v3:** * - shubh (default), aditya, ritu, priya, neha, rahul, pooja, rohan, simran, kavya, amit, dev, ishita, shreya, ratan, varun, manan, sumit, roopa, kabir, aayan, ashutosh, advait, anand, tanya, tarun, sunny, mani, gokul, vijay, shruti, suhani, mohit, kavitha, rehan, soham, rupali * - **bulbul:v4-flash:** * - 200+ persona voices named `__