Voice Evaluation and Benchmark Plan
Every score and pass rate in this documentation comes from the project's own question sets and its own scoring. No independent audit has been carried out. The multi-vendor benchmark described below was designed but, as of the last verification of this page (2026-05-27), only the project's own adapter was functional; no comparative results exist.
The case for a separate voice eval
The existing text golden evaluation (299 questions) reported a 99.0 % pass rate in the project's own run (self-reported). That score measures entity recall and must-refuse behaviour only; it is not evidence of answer correctness or grounding, and it is not sufficient to validate voice-channel behaviour. Four reasons:
- Voice answers are 2–3 sentences. Text answers average ~6. A text-shaped answer that fails voice-shape compliance would pass text eval unchanged.
- Voice questions are phonetic. Phone-shaped utterances are shorter, more colloquial, interrupted, and subject to STT noise. Text eval questions are keyboard-shaped.
- Voice has conversational intents absent from text.
farewell,switch_language,appointment,escalateare voice-channel-only routing decisions. Text eval does not label these. - Voice time-to-first-token matters. Text eval measures answer quality. Voice eval must also measure perceived responsiveness.
The Phase A seed set
The seed set holds 30 hand-written entries.
It was hand-crafted rather than converted from the text set, because converting all 299 questions requires an LLM pass plus review by a native Flemish speaker (deferred to Phase A.2). The Phase A seed covers the full labelling scheme across all four languages:
| Intent class | Count | Languages |
|---|---|---|
answered | 12 | 8 nl, 2 en, 1 fr, 1 it |
farewell | 3 | nl, en, fr |
switch_language | 3 | → en, → fr, → it |
appointment | 3 | nl, en, fr |
escalate | 3 | nl, en, fr |
out_of_scope (all tagged as speech-recognition ambiguity traps) | 3 | nl, en, fr |
clarify | 3 | 2 nl, 1 en |
Each entry holds a spoken-style question, its language, and the expected outcome: a maximum sentence count, forbidden tokens (URL and markdown characters), the expected conversational intent, the target language where relevant, and whether a disclaimer is required.
Phase A.2 plans to expand this to 349 entries (299 converted from the existing text set plus 50 new ones covering voice-only intents and speech-recognition traps), with hand review by a native Flemish speaker for the 20 % most-transformed questions.
The Voice Evaluator
The evaluator runs the seed set against any object implementing the orchestrator interface and produces a report with total, passed and failed counts, the pass rate, time-to-first-token at the 50th and 95th percentile, failures by intent, and failure details.
Pass criteria per entry (all must hold):
- The returned conversational intent equals the expected label.
- If the expected intent is
switch_language, the target language matches. - The response is marked voice-shape compliant.
- No forbidden token (a URL fragment or markdown character) appears in the lower-cased answer.
The design gate is a pass rate of at least 0.95. The evaluator is exercised in tests against a mocked orchestrator that returns the expected labels verbatim, which confirms the harness itself is healthy. Real-orchestrator runs happen on a developer machine or a test environment.
Benchmark methodology (planned)
The Phase A benchmark was designed to compare the project's voice stack against five other voice-RAG stacks on the same seed set. The vendor selection is deliberate:
| Vendor | What it would demonstrate | Integration mode |
|---|---|---|
| The project's voice stack | Reference | Direct orchestrator call |
| OpenAI Realtime | Industry voice-native reference | In-context knowledge injection |
| Retell AI | Custom-RAG orchestration vendor | Webhook to the project's RAG |
| Vapi | Sibling orchestration vendor | Webhook to the project's RAG |
| Deepgram Voice Agent API | Vendor-integrated voice + knowledge-base stack | Knowledge-base upload |
| LiveKit Agents + generic OpenAI RAG | Baseline: what LiveKit alone gets you without the project's RAG | Cookbook RAG over the project's vector store |
The last row is the critical comparison: it asks whether building custom voice-RAG is actually better than the lowest-effort off-the-shelf integration. If the project's stack cannot beat that baseline on Dutch hospital content, the architectural investment is hard to justify.
Metrics (seven per run)
- Time-to-first-token, 50th / 95th percentile (ms) — perceived responsiveness.
- Full-answer completion, 50th / 95th percentile (ms) — operational monitoring.
- Voice-shape compliance (0–1) — sentence count, no URL, no markdown, numbers spelled.
- Answer faithfulness — judge-based scoring, 0–1, grounded in retrieved context. (The automated judge was not running validly after mid-May 2026, so no current faithfulness figure should be quoted.)
- Safety refusal rate on advice-seeking prompts — the share of advice-seeking prompts that are refused.
- Dutch fluency — rated 1–5 per audio clip by a native Flemish reviewer.
- Cost per 1,000 turns (USD) — commercial viability.
Run topology
Phase A vs. Phase A.2 scope
| Adapter | Phase A state | Phase A.2 |
|---|---|---|
| The project's stack | Functional: runs against a local voice orchestrator (the legacy orchestrator was deleted on 2026-05-02; see ADR-0049 and ADR-0051) | Same, no change |
| All five external adapters | Skeletons that raise "not implemented" | Real API calls |
Real vendor calls require accounts or credentials with each vendor. The estimated one-time benchmark cost was roughly USD 15 of OpenAI Realtime credits plus free-tier usage on the others and about 2.5 hours of a native Flemish reviewer's time (planning estimates, not measured).
Nightly audio-loop evaluation
The audio-loop evaluator renders each seed question as speech via ElevenLabs, pipes the audio through Deepgram STT, sends the transcribed text back to the query service, and measures whole-loop quality. This catches speech-recognition-induced regressions (for example, the recogniser starting to mishear a common Dutch treatment term) that text-only evaluation cannot.
It exists only as a manually triggered scaffold and does nothing when the speech-service credentials are absent. Turning it into a scheduled nightly job requires adding the credentials to the CI environment, enabling the schedule, and implementing the runner body, which is currently a placeholder. The planning estimate for real runs is under one US dollar per night.
Dashboards
Voice metrics (time-to-first-token, intent distribution, safety escalations, shape compliance) are tagged by channel and tenant so dashboards can separate voice from text. A suggested layout:
- Row 1 — Traffic: voice requests per minute, conversational intent distribution, language distribution.
- Row 2 — Latency: time-to-first-token percentiles, full completion time, shape-compliance rate.
- Row 3 — Safety: escalations per reason, false-positive rate estimate from the nightly eval.
- Row 4 — Quality: voice golden eval pass rate, last benchmark snapshot.
See also
- Voice Golden Eval — the manual once-per-sprint scenario-driven regression harness. Covers what this page's eval set does NOT: multi-turn memory, end-to-end latency budgets, phrase-level assertions on the orchestrator's reply.
References
- Binns et al., "A Reality Check(list) for Benchmarks in AI" (2024) — the methodology principle that a benchmark must include a "lowest-effort baseline" (LiveKit + generic RAG, here) to avoid publication bias toward the hand-crafted system.
- Lin et al., "HELM — Holistic Evaluation of Language Models" (Stanford, 2022) — the multi-metric, multi-vendor evaluation framework this benchmark design adapts.
- Deepgram, "Streaming ASR + LLM Voice Agent Architecture" (2024) — technical background for the audio-loop eval pattern.