| from enum import Enum, auto | |
| from dataclasses import dataclass | |
| from typing import Any | |
| class TurnState(Enum): | |
| IDLE = auto() | |
| USER_SPEAKING = auto() | |
| THINKING = auto() | |
| SPEAKING = auto() | |
| INTERRUPTED = auto() | |
| class SessionConfig: | |
| voice_name: str = "cosette" | |
| language: str = "en" | |
| sample_rate: int = 16000 | |
| allow_interruptions: bool = False | |