# This file was auto-generated by Fern from our API Definition.

import typing

import typing_extensions
from .configure_connection_data import ConfigureConnectionDataParams


class ConfigureConnectionParams(typing_extensions.TypedDict):
    """
    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-beta:** Does NOT support pitch/loudness. Pace range: 0.5-2.0. Supports temperature. Default sample rate: 24000 Hz.
    """

    type: typing.Literal["config"]
    data: ConfigureConnectionDataParams
