/** * Configuration message required as the first message after establishing the WebSocket connection. * This initializes TTS parameters and can be updated at any time during the WebSocket lifecycle * by sending a new config message. When a config update is sent, any text currently in the buffer * will be automatically flushed and processed before applying the new configuration. * * **Model-Specific Notes:** * - **bulbul:v2:** Supports pitch, loudness, pace (0.3-3.0). Default sample rate: 22050 Hz. * - **bulbul:v3:** Does NOT support pitch/loudness. Pace range: 0.5-2.0. Supports temperature (0.01–1.0). Default sample rate: 22050 Hz when omitted. * - **bulbul:v4-flash:** Same request/response contract as bulbul:v3, with 200+ persona voices. Default sample rate: 22050 Hz when omitted. */ export interface ConfigureConnection { type: "config"; data: ConfigureConnection.Data; } export declare namespace ConfigureConnection { interface Data { /** * Specifies the model to use for text-to-speech conversion. * - **bulbul:v2** (default): Standard TTS model with pitch/loudness support * - **bulbul:v4-flash**: Latest model, recommended for new integrations — same contract as bulbul:v3, with a 200+ voice persona catalog * - **bulbul:v3**: Stable model (API default when omitted) with temperature control (no pitch/loudness) */ model?: Data.Model | undefined; /** The language of the text in BCP-47 format */ language_code: Data.LanguageCode; /** * The speaker voice to be used for the output audio. * * **Default:** shubh (for bulbul:v3), anushka (for bulbul:v2). For **bulbul:v4-flash**, set `speaker` to a persona ID from the Voices guide (v3/v2 defaults 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 `__