Connections can drop at any time, for example on network changes or server restarts. A dropped connection does not end the session. To continue, reconnect within 300 seconds and identify the session:
or ?session_id=ps_… if you cannot send headers. You receive session with "resumed":true, then a speakers_snapshot with everything decided so far, then live updates.
Send the audio you buffered while disconnected first, then continue live. This keeps your timeline aligned with ours. The real-time allowance counts from when the session started, not per connection, so you may send the backlog faster than real time, in frames of at most 16,000 bytes, as long as your total audio stays within 500 ms of the wall-clock time since the session started.
A newer connection to the same session replaces an older one, which is closed with 4001. Do not reconnect from the connection that received 4001; the newer one is already receiving updates.
- Reconnecting to a session that ended normally usually returns its
final result, for up to 1 hour after it ended. This is not guaranteed: a session that ended with result_incomplete, or whose result was lost in server maintenance, returns 410 session_ended instead. Read final on the live connection whenever you can.
- A session that ended as
drain, max_duration or credit_exhausted cannot be continued. To keep diarizing, open a new session: it has a new id, its audio time starts at 0 and its speaker ids are new.
- With no connection for 300 s (and no finalize), the session ends with reason
idle_timeout.
- Reconnects do not count against the concurrent-session limit and are not refused for lack of credit, but they do count against the request rate limits.
Last modified on November 23, 2026