Adaptive TTS speed (A.3)
Designed and implemented 2026-04-25. Third item of the Q2 naturalness sprint, follows A.2 (context-aware filler) and A.4 (prosody injection). On by default; an operator setting can turn it off.
Why adapt TTS speed
A fixed TTS speed of 1.0 sounds calm-and-professional in the abstract — and wrong in three observable cases:
- The caller asks the agent to slow down. Pre-A.3, the agent acknowledged the request ("Of course, I'll speak more slowly") but did not actually change the TTS speed; the speech plugin did not expose voice settings cleanly. A later plugin version does, so A.3 makes the acknowledgement truthful.
- The caller is in distress. A distress signal on the inbound transcript should trigger calmer, slower delivery on the outbound — before the handoff template starts speaking. Standard pace mid-distress reads as obtuse at best, callous at worst.
- The caller speaks slowly. Elderly callers (the dominant hospital-helpdesk demographic) often speak at < 110 WPM. Matching their pace with a small −0.05 offset reads as attuned without crossing into mockery.
ElevenLabs Multilingual v2 accepts a speed parameter in its VoiceSettings; A.3 composes the three signals into one knob and updates the TTS settings idempotently.
Trade-offs
| Decision | Chosen | Alternative | Rejected because |
|---|---|---|---|
| Composition function | clamp(discrete + offset, 0.70, 1.00) with priority distress > explicit > baseline | Multiplicative composition (distress × explicit_factor × wpm_factor) | Multiplicative composition can drive the speed below the audibly-degraded threshold (~0.65) under stacked discounts; additive-with-clamp gives a hard floor. |
| Speed-up signal | None — the agent never speeds up beyond 1.0 | Symmetric speed control | Hospital callers perceive "sped up" as "rushed" or "uncaring." The only legitimate request is to slow down. |
| Persistence | Sticky for the call (slow-down) / 2-turn decay (distress) / per-turn (WPM) | Reset every turn | Sticky-for-call matches user mental model: "I asked you to slow down" is a one-time request, not a per-turn parameter. The user shouldn't have to repeat it. |
What it is
The agent's TTS speed adapts to three signals simultaneously:
| Signal | Effect |
|---|---|
| Caller asks "spreek wat trager" / "speak more slowly" | Speed → 0.85, sticky for the rest of the call |
| Distress signal detected on interim or final transcript | Speed → 0.75 (more urgent), sticky for 2 turns then decays |
| Caller speaks slowly (< 110 WPM) | Adds −0.05 offset to whichever speed is active |
The three compose into one knob:
In words: the final speed is the active discrete speed plus the pace offset, limited to the range 0.70 to 1.00.
When both explicit and distress are concurrently active, distress wins
(min(0.85, 0.75) = 0.75). The clamp is a defensive floor — even at the
extreme combination of distress + slow caller (0.75 + (−0.05) = 0.70),
the agent never goes below 0.70 (audibly degraded below that).
Why it matters
Two of the three triggers fix concrete caller-experience gaps:
- Truthfulness. Before A.3, the Phase 3.5 stub ack'd the slow-down request ("Of course, I'll speak more slowly") but did not actually slow the TTS, because the speech plugin did not yet expose voice settings cleanly. A later plugin version does, so A.3 makes the stub truthful: the request now changes the TTS speed for the rest of the call.
- Patient-care alignment. A caller in distress hearing the handoff
template at normal pace is the wrong tempo for the moment. A.3 slows
to
0.75before the distress-handoff TTS speaks, so the calm delivery is in effect from the first word.
The third trigger (slow-caller WPM offset) is subtler — a −0.05 nudge
for slow-speaking callers (often elderly). Bounded so it never produces
audible mockery effects.
Triggers and persistence
Each trigger has its own natural lifetime:
| Trigger | Lifetime | Reset condition |
|---|---|---|
| Explicit slow-down | sticky | call end (no mid-call speed-up detector) |
| Distress | sticky for 2 turns | non-distressed turns decrement; counter at 0 = decayed |
| Caller WPM bucket | per-turn | re-evaluated from each turn's transcript |
The "no speed-up signal" is deliberate. Elderly callers (the most common beneficiaries) rarely ask the agent to speed up — they asked for slow because they need slow. Younger callers who triggered slow by mistake can hang up and call back.
WPM measurement
Per-turn rough estimate:
Words per minute is the number of words in the final transcript divided by the time between the first interim transcript of the turn and the final transcript, scaled to one minute.
Bucket cutoffs:
| WPM | Bucket | Offset |
|---|---|---|
< 110 | slow | −0.05 |
110 ≤ wpm ≤ 180 | normal | 0 |
> 180 | fast | 0 |
The fast bucket gets 0 (not a positive offset) because A.3 never
speeds the agent up beyond baseline. Hospital callers may perceive
"sped up" as "rushed" or "uncaring."
Plumbing — when the speed is applied
Changing the speech settings forces the speech provider's connection to be rebuilt, which costs roughly 200-400 ms on the next utterance. A.3 therefore compares the target speed with the current one and makes no change when they are equal. Every actual speed change is recorded as a structured log event.
Failure modes
| Scenario | Behavior |
|---|---|
| The settings update fails (plugin error, network blip) | Log warning, retain current speed (silent degradation, never crash) |
| WPM measurement window is 0 or empty text | Skip WPM update; bucket stays at last known value |
| Switched off | All speed-change paths bypassed; agent runs at baseline 1.0 forever |
| ElevenLabs rejects an out-of-range speed value | Plugin's own validation surfaces error; we log and continue at last-good speed |
| Language switch during call | the active speech instance is read dynamically, so no stale reference is used |
No path crashes the session, kills audio, or degrades the safety paths.
Observability
Each speed change emits a structured log event recording the previous speed, the new speed, the reason and the language. The reasons are:
| Value | When it fires |
|---|---|
| Explicit slow-down request | Caller said "spreek trager" or equivalent |
| Distress detected | Distress signal on interim or final transcript |
| Distress decayed | Distress counter reached 0 |
| Pace offset change | Caller's WPM bucket flipped (normal to slow or vice versa) |
Settings
The feature is on by default. An operator setting bypasses all adaptive speed logic so the agent runs at baseline 1.0 on every turn; changing it requires a restart of the voice agent.
Test it
Speak a slow-down request and listen for the speed change in the agent's next utterance:
- nl: "Spreek wat trager alsjeblieft."
- en: "Can you speak more slowly?"
- fr: "Parlez plus lentement, s'il vous plaît."
- it: "Parla più lentamente."
The change is sticky for the rest of the call: every subsequent answer is spoken at speed 0.85.
For distress, speak a distress signal (the patterns are documented on the safety page) and listen for the distress handoff template at speed 0.75. The next two turns stay slow; turn 3 decays back to 1.0 (or 0.85 if the explicit request was also set).
References
- ElevenLabs Multilingual v2 — production TTS model; the
VoiceSettings.speedparameter is the lever this feature controls - LiveKit Agents Documentation — the API used to apply per-turn speech settings
- Wang et al. 2017
- Nielsen 1993