Voice Channel — Overview
A Voice Call, End-to-End traces one real four-turn cardiology appointment call through every stage of this channel — STT, language-lock, the agentic orchestrator, follow-up resolution, the deterministic capability short-circuit, and TTS — with backend cognition captured live from the pilot.
Mission
This documentation describes a graduation project for the PXL University College "AI Technology Architect" programme, authored by SOFT4U BV and the project team. The system is a pilot built for Ziekenhuis Oost-Limburg (ZOL). It is not an official ZOL publication and is not endorsed by ZOL.
The voice channel is designed to turn an inbound telephone call to the hospital into a knowledge-base-grounded conversation: no keypad menus, and no call-centre queue for navigation questions. A caller who asks "Waar is de cardiologie?" gets a spoken answer drawn from the same indexed corpus that powers the web chatbot, under the same refuse-and-link safety policy. The channel runs as a pilot; external rollout is pending the remaining network and certificate work (ADR-0050, Phase B).
Voice matters because it is where call-centre load lives and where many callers, including elderly ones, are most comfortable. It is also where the regulatory bar is hardest to meet: AI Act Article 50(2) transparency has to be discharged in spoken form on every turn. The design answers this with a spoken disclaimer prepender (Voice Safety Architecture, Stage 4) and caller-auditable telemetry (Value Framework telemetry).
The target is zero medical-advice incidents; it is a target, not an achievement. A June 2026 audit of the pilot's stored conversations found 3 voice answers that explained possible causes of symptoms. See the Safety overview for the full record, including the caveat that these counts come from the project's own audit.
Five-layer architecture
| Layer | Component | Role |
|---|---|---|
| Telephony | Twilio SIP trunk | Owns the Belgian phone number and forwards the call over SIP to the media server. (RFC 3261) |
| SIP gateway | LiveKit SIP service | Translates PSTN μ-law audio to Opus/WebRTC participant |
| Room | LiveKit server (@livekit_agents_docs) | Media relay between SIP participant and agent worker |
| Agent | Voice agent worker (LiveKit Agents) | Deepgram Nova-3 STT (@deepgram_nova3), per-turn WS call to backend, ElevenLabs Multilingual v2 TTS (@elevenlabs_multilingual_v2) |
| Backend | Voice orchestrator (GPT-4.1 with tool use) | rule-based pre-filter → LLM tool-call loop → safety post-filter → answer-shaper → disclaimer-prepender |
The cognition layer
The backend voice orchestrator is agentic: a single GPT-4.1 agent with three tools (search the hospital knowledge base, transfer to the helpdesk, end the call) decides, per turn, whether to answer directly, search, transfer the caller, or close the call. It uses the same retrieval pipeline as the chat channel, flagged as the voice channel, which activates voice-specific behaviour:
- Value Framework affinity rerank (Stage 5b) and synthetic department-doctor injection (Stage 5c) steer retrieval toward the right category of content.
- Chunk-derived citations — the spoken answer carries no
[N]markers (un-pronounceable), so citations are derived directly from the retrieved chunks. - Per-tenant persona — name, voice, greeting, and available languages are served per tenant by the backend.
- Doctor-profile retrieval boost — a retrieval boost for documents that are doctor profiles (see ADR-0057).
See Architecture for the full composition, per-turn flow, feature-flag topology, and latency budget.
Pages in this section
- Architecture — the voice orchestrator composition, per-turn flow, latency budget, and how voice differs from chat
- Value Framework — intent-to-category affinity rerank, primary-category prompt guard, wheelchair regression, telemetry
- Citation Pipeline — voice citations without inline
[N]markers; the cascade fix; cache flush discipline - Voice Safety Architecture — two-stage safety model + Stage 4 disclaimer prepender
- Conversational Intent — derived from a rule-based pre-filter plus GPT-4.1 tool choice (replaces the deleted three-tier resolver)
- Language Locking — ADR-0052: locks language at first utterance, eliminates Deepgram mid-call silence failures
- Twilio + LiveKit SIP — telephony architecture, Phase A, Phase B pending
- Answer Shaping — TTS-friendly deterministic post-processing (markdown / URL / citation strip, abbreviation expand, time + currency spell-out, sentence cap)
- Tenant Overlay System — multi-tenant FAQ + STT mishear corrections via per-tenant overlay package
- Adaptive TTS Speed, Context-aware Filler, Listening Ack, Prosody Injection — voice-agent-side UX details
- Evaluation — voice golden set and benchmark harness (self-reported)
References
- ADR-0049: Thin Voice Architecture (stepping stone — superseded by ADR-0051)
- ADR-0050: Twilio + LiveKit SIP Integration (kept in the project's private repository)
- ADR-0051: The agentic voice orchestrator is the only voice path
- ADR-0052: Voice Language Locked at First Utterance
- Lewis et al. 2020 — original RAG architecture; the agentic orchestrator's search tool is the RAG retriever stage exposed as a tool
- Gao et al. 2024 — Modular RAG taxonomy; voice channel is "Modular RAG with agentic dispatcher"
- Regulation (EU) 2024/1689, AI Act Article 50 — transparency for interactive AI systems; drives the spoken disclosure requirement at call greeting AND per-turn via the disclaimer prepender. Full text at https://eur-lex.europa.eu/eli/reg/2024/1689/oj.
- Belgian ePrivacy Directive transposition — governs call-recording consent; the voice channel is designed record-free