Skip to main content

live_transcribe

Transcribe a voice interaction in real-time.

NameTypeDefaultDescription
live_transcribeRequiredobject-An object that accepts the live_transcribe parameters.

live_transcribe Parameters

NameTypeDefaultDescription
action Requiredstring | object-The action to perform.
An object that contains one of the live_transcribe actions.
Possible Values: [stop, start, summarize]

Example

In the below example, the SWML script answers an incoming call and then starts recording the call. The script then starts a live transcription session by using the start action. The script will transcribe the conversation in English After the translation session has started, the script connects the call to a destination number.

sections:
main:
- answer: {}
- record_call:
format: wav
stereo: 'true'
- live_transcribe:
action:
start:
webhook: 'https://example.com/webhook'
lang: en
live_events: true
ai_summary: false
speech_timeout: 30
vad_silence_ms: 500
vad_thresh: 0.6
debug_level: 2
direction:
- remote-caller
- local-caller
speech_engine: default
summary_prompt: Summarize this conversation
- connect:
from: '+1XXXXXXXXXX'
to: '+1XXXXXXXXXX'