post_final_transcript message
The session's result, the same as GET /v2/live/{id}'s
(receive_post_processing_events).
Delivery
On the WebSocket with messages_config.receive_post_processing_events; to your callback as live.post_final_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_final_transcript" required -
dataobject required5 fields
-
metadataobject required4 fields
-
audio_durationinteger requiredAudio received, rounded to the whole second. The exact duration is
file.audio_duration. -
billing_timeinteger requiredBilled duration, rounded to the whole second. The usage counters meter the exact seconds (
GET /admin/usage, the workspace's Usage page). -
number_of_distinct_channelsinteger requiredNumber of audio channels.
-
transcription_timenumber requiredHow long the session ran, in seconds.
-
-
transcriptionobject 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:
null
-
-
-
full_transcriptstring requiredThe final utterances' text, joined.
-
-
translationobjectdefault:
null5 fields
-
successboolean required -
is_emptyboolean requiredtruewhen nothing was translated. -
exec_timenumber required -
erroranydefault:
null -
resultsarray of object requiredOne result per target language.
6 fields
-
erroranyAlways
null.default:
null -
languagesarray of string requiredThe target language of this result.
-
full_transcriptstring requiredThe translated text, joined.
-
utterancesarray of object requiredThe translated utterances, one per final.
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.
-
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:
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:
null
-
-
sentencesarray of any requiredAlways empty.
-
subtitlesarray of any requiredAlways empty.
-
-
-
summarizationobjectdefault:
null6 fields
-
successboolean requiredfalse: the LLM failed, refused or took over 30 s. -
is_emptyboolean requiredtruewhen nothing was summarized (or it failed). -
exec_timenumber requiredSeconds the summary took.
-
erroranyNull on success, else
{status_code, exception, message}.default:
null -
resultsstring requiredThe summary, null when empty or failed.
-
partialbooleantrue: the session moved to another connection (a reconnection, a GPU handoff) and the summary covers the transcript since that move only.default:
null
-
-
language_detectionobjectdefault:
null6 fields
-
languagestring requiredThe language spoken (ISO 639-1).
-
confidencenumber requiredHow sure the engine is.
0 to 1
-
speech_snumberThe seconds of speech it decided on.
default:
null -
low_confidencebooleantrue: too unsure to act on; the session keeps its model.default:
false -
modelstringThe detector that decided.
default:
null -
alternativesarray of objectThe runners-up, the likeliest first.
2 fields
-
languagestring requiredAnother language it may be (ISO 639-1).
-
confidencenumber required0 to 1
-
-
-
Example
{ "session_id": "string", "created_at": "string", "type": "post_final_transcript", "data": { "metadata": { "audio_duration": 0, "billing_time": 0, "number_of_distinct_channels": 0, "transcription_time": 0.5 }, "transcription": { "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": [], "text_raw": "string", "entities": [], "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" }, "translation": { "success": false, "is_empty": false, "exec_time": 0.5, "error": null, "results": [ { "error": null, "languages": [], "full_transcript": "string", "utterances": [], "sentences": [], "subtitles": [] } ] }, "summarization": { "success": false, "is_empty": false, "exec_time": 0.5, "error": null, "results": "string", "partial": false }, "language_detection": { "language": "fr", "confidence": 0.93, "speech_s": 2.1, "low_confidence": false, "model": "language-id-v2", "alternatives": [ { "language": "en", "confidence": 0.04 } ] } }}