Package io.elevenlabs.network
See: Description
-
Class Summary Class Description BaseConnection Abstract base class for network connectionsThis provides a common interface for different transport types (WebRTC, WebSocket) while supporting event-driven architecture with observable state. TokenService Service for fetching conversation tokens from ElevenLabs APIThis service handles authentication with the ElevenLabs API to obtain conversation tokens for private agents and connection details. TokenResponse Response from the ElevenLabs token API TokenServiceException Exception thrown when token service operations fail WebRTCConnection WebRTC implementation using LiveKit for real-time communicationThis class manages room-based architecture for connections, data channels for event messaging, audio tracks for voice communication, and automatic reconnection handling. WebSocketConnection WebSocket transport for ElevenLabs Conversational AI. -
Enum Summary Enum Description ConnectionState Represents the current state of a network connectionThis represents the low-level network connection state used internally by connection implementations like WebRTCConnection. -
Object Summary Object Description ConversationEventParser JSON event processing for real-time conversation protocolThis object handles parsing incoming events from ElevenLabs servers and serializing outgoing user actions and responses. Companion