πExtensions Cookbook
Worked examples for the extensions adapters use most β WTF transcription, lawful basis, SIP signaling, agent session.
WTF Transcription
Recipe
import json
from foo_adapter.vcon_builder import new_vcon
v = new_vcon(subject="Sales call", extensions=["wtf"])
v.add_party(tel="+15555550100", role="caller")
v.add_party(tel="+15555550200", role="agent")
v.add_dialog(
type="recording",
start="2026-05-19T14:32:00Z",
parties=[0, 1],
url="https://recordings.example/abc.wav",
content_hash="sha512-...",
mediatype="audio/wav",
)
wtf_document = {
"transcript": {"text": "Hello, this is Foo Corp..."},
"segments": [
{"start": 0.0, "end": 2.3, "speaker": 0, "text": "Hello, this is Foo Corp."},
{"start": 2.3, "end": 5.1, "speaker": 1, "text": "Hi, I'm calling about my account."},
],
"language": "en-US",
}
v.add_analysis(
type="transcript",
dialog=0,
vendor="openai-whisper",
product="whisper-large-v3",
body=json.dumps(wtf_document),
encoding="json",
schema="https://datatracker.ietf.org/doc/draft-howe-vcon-wtf-extension/",
)Resulting analysis[] entry
analysis[] entryCommon mistakes
Lawful Basis (recording consent)
Recipe β consent-based (GDPR Article 6(1)(a))
Recipe β synthetic data
Common mistakes
SIP Signaling
Recipe
Agent Session
Recipe
Combining extensions
Where to read the actual specs
Last updated
Was this helpful?