Skip to content

eager_end_of_turn message

The speaker has probably finished (end_of_turn.eager_eot_threshold): a voice agent may start preparing its answer. An end_of_turn confirms it, or a turn_resumed cancels it.

Delivery

Always on the WebSocket when its option is on; never to the callback.

Fields

  • type "eager_end_of_turn" required
  • session_id string required
  • data object required
    5 fields
    • channel integer required
    • probability number required

      Probability that the speaker finished.

    • end number required

      Seconds of audio of the channel at the pause.

    • speech_duration number required

      Speech in the turn, in seconds.

    • text string

      With end_of_turn.speculation: the text of the turn as the engine saw it at the pause, the text to start a speculative LLM call on. The first end-of-turn message of a pause is the one the speculation message compares the final to. Empty when the engine had nothing to show (no verdict follows). Absent without speculation, and on a session that masks PII (pii in a mode other than tag): read the last partial there.

      default: null

Example

{
"type": "eager_end_of_turn",
"session_id": "string",
"data": {
"channel": 0,
"probability": 0.5,
"end": 0.5,
"speech_duration": 0.5,
"text": "string"
}
}