import type * as ElevenLabs from "../index"; /** * All fields are optional unless noted for a context's **first** message. * * **Every message** * - `context_id` is required, except on a message containing only `close_socket`. * * **First message for a context** * - `voices`: non-empty array of voice IDs (maximum 10 per context for `eleven_v3`; exactly 1 for `eleven_v3_conversational`). * - Credentials if not supplied via `xi-api-key` / `Authorization` headers or `single_use_token` query parameter (accepted on the first message of the connection only). * * **Subsequent messages for a context** * - Do not resend `voices`, `voice_settings`, `pronunciation_dictionary_locators`, or credential fields. */ export interface TextToDialogueWebsocketClientMessageMulti { /** Identifier for an independent dialogue stream within the socket. The first message with a new `context_id` creates that context. Required on every message except one containing only `close_socket`. */ contextId?: string; /** Dialogue lines to append to this context for synthesis. Each `voice_id` must be registered for this context. */ inputs?: ElevenLabs.TextToDialogueWebsocketVoiceInput[]; /** Force generation of this context's buffered text without closing it. */ flush?: boolean; /** Flush this context's remaining audio, emit its `is_final` message, and close it. Other contexts stay open. */ closeContext?: boolean; /** Flush all contexts, emit their remaining audio and `is_final` messages, and close the WebSocket. */ closeSocket?: boolean; /** Resets this context's 20s inactivity timer; performs no synthesis. */ keepAlive?: boolean; /** API key for the first message of the connection if not provided via the `xi-api-key` header. */ xiApiKey?: string; /** Bearer token for the first message of the connection if not provided via the `Authorization` header. */ authorization?: string; /** Single-use token for the first message of the connection if not provided via the `single_use_token` query parameter. */ singleUseToken?: string; /** Voice IDs to load for this context (first message for the context only, required on that message). */ voices?: string[]; /** Optional voice settings for this context (first message for the context only). */ voiceSettings?: ElevenLabs.TextToDialogueWebsocketVoiceSettings; /** Optional pronunciation dictionaries for this context (first message for the context only). */ pronunciationDictionaryLocators?: ElevenLabs.PronunciationDictionaryLocator[]; }