Type alias EotPredictionEvent

EotPredictionEvent: {
    createdAt: number;
    delayMs: number;
    inferenceDurationMs: number;
    probability: number;
    threshold: number;
    type: "eot_prediction";
}

Audio EOT prediction landed on the wire. Emitted once per turn boundary decision when a TurnDetector is wired into the session.

Type declaration

  • createdAt: number
  • delayMs: number

    End-of-speech → prediction receive time, in milliseconds.

  • inferenceDurationMs: number

    Model-side inference time, in milliseconds.

  • probability: number

    End-of-turn probability in [0, 1] returned by the detector.

  • threshold: number

    Threshold below which the detector treats the prediction as unlikely.

  • type: "eot_prediction"