Discussions
Websocket ready to accept audio packages?
3 months ago
How can we ensure that the WebSocket (https://api.liveavatar.com/v1/sessions/start, ws_url) is ready to accept audio packages?
{
"type": "agent.speak",
"event_id": str(self._get_event_id()),
"audio": audio_b64,
}
Will the Websocket send a "session.state_updated connected"?
Should we check the session state on "connecting," "connected," or "closing"? Similar to https://docs.heygen.com/reference/list-sessions
Both, or ...?