Overview
Session resumption allows you to continue voice conversations from where they left off, even after page refreshes or application restarts. This provides a seamless user experience for ongoing conversations.How It Works
To resume a session, pass theresume_session
query parameter when requesting an ephemeral key from your backend.
Backend Implementation
Update your/token
endpoint to handle session resumption:
Frontend Usage
Request an ephemeral key with the session ID to resume:Context Restoration
When a session is resumed, the context is restored and you’ll receive acontext.restored
event:
Use Cases
- Page refreshes: Continue conversations after accidental refreshes
- Application restarts: Resume conversations across app sessions
- Multi-device: Continue conversations on different devices