Skip to content

finalize message

The answer to the client's finalize, one per channel, always sent on the socket.

Delivery

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

Fields

  • session_id string required

    Identifier of the session.

  • created_at string required

    When the message was sent (ISO 8601, UTC).

  • type "finalize" required
  • acknowledged boolean required

    false when the gateway answered it without the inference: the session is stopping, the request came within 200 ms of the previous one, the session moved to another endpoint before the answer, or its endpoint cannot finalize (error says which).

  • error string

    default: null

  • data object required
    3 fields
    • channel integer required

      The audio channel answered, from 0.

    • finalized boolean required

      true: the open utterance went out as a final, right before this message (its data.from_finalize is true); false: nothing was open (no speech since the last final), or the request was not forwarded (error says why).

    • utterance_id string

      With finalized: the data.id of the final it sent.

      default: null

Example

{
"session_id": "string",
"created_at": "string",
"type": "finalize",
"acknowledged": false,
"error": "string",
"data": {
"channel": 0,
"finalized": false,
"utterance_id": "00_00000003"
}
}