pub type RealtimeSessionResponse = RealtimeSession;Expand description
Backwards-compatible alias for RealtimeSession.
Aliased Type§
pub struct RealtimeSessionResponse {
pub ephemeral_token: String,
pub url: String,
pub signed_url: String,
pub session_id: String,
pub provider: String,
}Fields§
§ephemeral_token: StringEphemeral token for direct WebSocket connection (xAI/OpenAI).
url: StringWebSocket URL to connect to. For xAI: “wss://api.x.ai/v1/realtime” For ElevenLabs: the signed WebSocket URL (includes auth in URL).
signed_url: StringSigned URL (alias for url — ElevenLabs returns this field name).
session_id: StringSession ID for billing (pass to realtime/end on disconnect).
provider: StringProvider name (e.g. “elevenlabs”, “xai”).