Skip to content

<Transcription>

Transcribes the call in real time and posts the transcript events to statusCallbackUrl. An invalid element (unknown track or engine, no statusCallbackUrl, a value over its length limit) is logged and skipped and the document goes on; so is a <Transcription> on a leg that already streams. Transcription must be enabled on the platform.

Used inside <Start>.

<Response>
<Start>
<Transcription name="live-notes" statusCallbackUrl="https://example.com/transcripts"
languageCode="en-US" track="both_tracks" partialResults="true"/>
</Start>
<Dial><Number>+14155550100</Number></Dial>
</Response>
Attribute Values Default Description
statusCallbackUrl URL, up to 2048 characters — required — URL that receives the transcription events: absolute, or relative to the document URL; http(s), at most 2048 characters, no user:password@.
statusCallbackMethod string, matching [Gg][Ee][Tt]|[Pp][Oo][Ss][Tt] POST GET or POST, any case; other values mean POST.
name string, up to 256 characters — A name for the transcription, used by <Stop> and reported as Name. At most 256 characters.
languageCode string, up to 128 characters en-IN BCP-47 language to transcribe (multi for Deepgram’s multilingual model). At most 128 characters.
track inbound_track, outbound_track, both_tracks both_tracks Which audio to transcribe; matched in any case.
inboundTrackLabel string, up to 128 characters inbound Label reported for the inbound track. At most 128 characters.
outboundTrackLabel string, up to 128 characters outbound Label reported for the outbound track. At most 128 characters.
transcriptionEngine auto, deepgram, microsoft, sarvam, assembly, soniox auto Speech engine; auto picks one for the language. Matched in any case.
speechModel string, up to 128 characters the engine's default Engine model, e.g. nova-3. At most 128 characters.
partialResults true/false, t/f or 1/0, in any letter case. A malformed value keeps the default false true also sends interim (non-final) results.
enableAutomaticPunctuation true/false, t/f or 1/0, in any letter case. A malformed value keeps the default true Punctuate the transcript.
profanityFilter true/false, t/f or 1/0, in any letter case. A malformed value keeps the default false Mask profanity in the transcript.
hints string — Comma-separated keywords to boost; at most 100 hints of up to 100 characters each are kept, the rest dropped.

Sent to statusCallbackUrl:

Parameter Description
TranscriptionEvent transcription-started, transcription-content, transcription-stopped or transcription-error.
TranscriptionSid Unique id of the transcription.
Name The name attribute.
CallSid The call transcribed.
AccountSid The account.
Timestamp Time of the event (ISO 8601).
SequenceId Order of the event.
LanguageCode Language transcribed.
Engine Engine that produced the transcript.
Track Track of the speech (content events).
TrackLabel inboundTrackLabel or outboundTrackLabel.
TranscriptionData transcription-content: {“transcript”: …, “confidence”: …}.
Final transcription-content: false for a partial result.
StartMs transcription-content: start of the utterance.
EndMs transcription-content: end of the utterance.
ErrorMessage transcription-error: what went wrong.
  • Transcription events are sent by the transcription service and signed (X-Dialog365-Signature); see the live transcription guide.