post_transcript message
The whole session's transcript, after end_recording
(receive_post_processing_events).
Delivery
On the WebSocket with messages_config.receive_post_processing_events; to your callback as live.post_transcript with callback_config.receive_post_processing_events.
Fields
-
session_idstring requiredIdentifier of the session.
-
created_atstring requiredWhen the message was sent (ISO 8601, UTC).
-
type"post_transcript" required -
dataobject required3 fields
-
languagesarray of string requiredLanguages heard, in order of appearance.
-
utterancesarray of object requiredEvery final utterance, by start time.
14 fields
-
textstring requiredThe transcript. With PII redaction on, it carries its inline elements (
<pii:email id="1"/>); named entities are written inline (<ner:name id="1">…</ner:name>) only withinline_tags: true. -
startnumber requiredStart, in seconds from the start of the audio.
-
endnumber requiredEnd, in seconds from the start of the audio.
-
languagestring requiredLanguage spoken (ISO 639-1).
-
confidencenumber requiredConfidence, from 0 to 1.
-
channelinteger requiredAudio channel the utterance was heard on, from 0.
-
speakerintegerSpeaker number, with
diarization.default:
null -
committed_textstringOn a partial, with
messages_config.receive_committed_text: its first words, those the model will no longer change. It trailstextby about one decoding step.default:
null -
wordsarray of object requiredThe words with their timestamps.
5 fields
-
wordstring requiredThe word, with its leading space when it follows another.
-
startnumber requiredStart of the word, in seconds from the start of the audio.
-
endnumber requiredEnd of the word, in seconds from the start of the audio.
-
confidencenumber requiredConfidence, from 0 to 1.
-
speakerintegerSpeaker of the word, with
diarization.default:
null
-
-
text_rawstringThe transcript without inline elements (with named entity recognition; never with PII redaction).
default:
null -
entitiesarray of objectThe entities of the utterance, with named entity recognition or PII redaction.
default:
null7 fields
-
labelstringEntity type, for example
name,phone_number,location_city.default:
null -
idintegerThe entity's number in the session, per type: the same person is always the same number.
default:
null -
actionstringner: tagged; otherwise how the personal data was redacted.default:
null -
scorenumberConfidence, from 0 to 1.
default:
null -
textstringThe entity as heard (never sent for masked personal data unless
pii.return_entities).default:
null -
startintegerOffset of the entity's element in
text, in characters.default:
null -
endintegerEnd offset of the entity's element in
text, in characters.default:
null
-
-
language_supportedfalsefalsewhen the language heard is one the model does not transcribe (with the language detected): the text is then unreliable. Absent otherwise.default:
null -
forced"max_duration"Set when the utterance was closed by
maximum_duration_without_endpointingrather than by a pause.default:
null -
speculationobjectWith
end_of_turn.speculation, on the final that closes a turn: the verdict of the speculative LLM turn (thespeculationmessage holds the same).default:
null7 fields
-
eager_textstringThe text of
end_of_turn.data.text, the one compared. Absent on a session that masks PII (piiin a mode other thantag): the partial it went out on is not masked.default:
null -
eager_endnumberSeconds of audio when the turn ended.
default:
null -
similaritynumberHow close the final is to
eager_text, from 0 (nothing in common) to 1 (the same). The scorerecommendationis decided on.default:
null -
lexical_similaritynumberThe same, on the words alone.
default:
null -
recommendationstring requiredkeep: the LLM call started onend_of_turnstill answers what was said;discard: cancel it and answer the final.one of:
keep,discard -
reasonstringWhy:
same_textandsimilarkeep;text_changed,caller_went_onandnew_entitydiscard (caller_went_on: the speaker kept talking after the end of turn, so the turn was not over;new_entity: the final names an entity the eager text lacked, seenew_entities). The engine may add values, read it as a label.default:
null -
new_entitiesarray of objectWith
named_entity_recognitionorpiion: the entities of the final whose words are not ineager_text;[]when there is none;nullwhen not checked (neither add-on on, orentities: false).default:
null3 fields
-
entity_typestring required -
scorenumber required -
textstringThe entity's words. Absent on a session that masks PII.
default:
null
-
-
-
-
full_transcriptstring requiredThe final utterances' text, joined.
-
Example
{ "session_id": "string", "created_at": "string", "type": "post_transcript", "data": { "languages": [ "string" ], "utterances": [ { "text": "Hello, how can I help you?", "start": 0.5, "end": 0.5, "language": "en", "confidence": 0.5, "channel": 0, "speaker": 0, "committed_text": "I would like to book", "words": [ { "word": " hello", "start": 0.5, "end": 0.5, "confidence": 0.5, "speaker": 0 } ], "text_raw": "string", "entities": [ { "label": "string", "id": 0, "action": "string", "score": 0.5, "text": "string", "start": 0, "end": 0 } ], "language_supported": false, "forced": "max_duration", "speculation": { "eager_text": "string", "eager_end": 0.5, "similarity": 0.5, "lexical_similarity": 0.5, "recommendation": "keep", "reason": "string", "new_entities": [] } } ], "full_transcript": "string" }}