Skip to content

hold message

The speaker paused but is still dictating (an address, an email, a phone number, an amount): the end of turn is kept back and the engine keeps listening (end_of_turn).

Delivery

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

Fields

  • type "hold" required
  • session_id string required
  • data object required
    6 fields
    • channel integer required
    • reason string required

      What the caller is still dictating; awaiting_classifier: the turn classifier has not answered yet; turn_in_progress: it says the turn goes on.

      one of: address_in_progress, email_in_progress, phone_in_progress, financial_amount_in_progress, date_in_progress, digits_in_progress, number_in_progress, awaiting_classifier, turn_in_progress

    • listening boolean required

      Always true: the engine keeps listening.

    • end number required

      Seconds of audio of the channel at the pause.

    • end_of_turn_probability number required

      The end-of-turn probability that was kept back.

    • inline string

      <hold reason="…" listening="true"/>, with inline_tags.

      default: null

Example

{
"type": "hold",
"session_id": "string",
"data": {
"channel": 0,
"reason": "address_in_progress",
"listening": false,
"end": 0.5,
"end_of_turn_probability": 0.5,
"inline": "string"
}
}