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_idstring requiredIdentifier of the session.
-
created_atstring requiredWhen the message was sent (ISO 8601, UTC).
-
type"finalize" required -
acknowledgedboolean requiredfalsewhen 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 (errorsays which). -
errorstringdefault:
null -
dataobject required3 fields
-
channelinteger requiredThe audio channel answered, from 0.
-
finalizedboolean requiredtrue: the open utterance went out as a final, right before this message (itsdata.from_finalizeistrue);false: nothing was open (no speech since the last final), or the request was not forwarded (errorsays why). -
utterance_idstringWith
finalized: thedata.idof 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" }}