# end_of_turn message

The speaker finished their turn (`end_of_turn`): a voice agent may answer.

## Fields

- `type` ("end_of_turn", required)
- `session_id` (string, required)
- `data` (object, required)
  - `channel` (integer, required)
  - `probability` (number, required): Probability that the speaker finished.
  - `reason` (string, required, one of: `model`, `timeout`): `model`: the end-of-turn probability crossed `threshold`; `timeout`: the silence reached `stop_s`.
  - `end` (number, required): When the turn ended, in seconds.
  - `speech_duration` (number, required): Speech in the turn, in seconds.

## Example

```json
{
  "type": "end_of_turn",
  "session_id": "string",
  "data": {
    "channel": 0,
    "probability": 0.5,
    "reason": "model",
    "end": 0.5,
    "speech_duration": 0.5
  }
}
```
