from dataclasses import dataclass, field


@dataclass
class Qwen3CloudTTSHandlerArguments:
    qwen3_cloud_api_key: str = field(
        default="",
        metadata={"help": "DashScope API key (or set DASHSCOPE_API_KEY env)."},
    )
    qwen3_cloud_model: str = field(
        default="qwen3-tts-flash-realtime",
        metadata={"help": "Bailian realtime TTS model id, e.g. qwen3-tts-flash-realtime."},
    )
    qwen3_cloud_voice: str = field(
        default="Cherry",
        metadata={"help": "Preset voice id for qwen3-tts (e.g. Cherry, Serena)."},
    )
    qwen3_cloud_sample_rate: int = field(
        default=16000,
        metadata={"help": "Pipeline sample rate (engine outputs 24k, handler resamples to this)."},
    )
    qwen3_cloud_blocksize: int = field(
        default=512,
        metadata={"help": "Output chunk size in samples (int16)."},
    )
