Savings Playbooks // DialStack Metrics
TTS Phrase Caching: Cut ElevenLabs Character Burn by 22%
Every outbound or inbound call repeats identical greetings, compliance notices, and hold fillers—cache them once as PCM frames.
Measured Unit Economics & Telemetry
On a 2-minute appointment confirmation call, the opening 140-character greeting and closing 110-character sign-off represent 20% to 25% of total synthesized characters. Serving pre-rendered PCM audio from local NVMe/Valkey costs $0.00 per playback.
| Cost / Latency Line | Audited Value | FinOps Impact |
|---|---|---|
| Avg Static Greeting + Legal | 220 - 320 chars/call | Repeated on 100% of calls |
| Dynamic Variables Split | Cache prefix + live name | Play cached audio first (<5ms) |
| Monthly TTS Character Cut | 18% - 28% | Saves $190-$950/mo at scale |
| Opening Audio TTFB | < 5 ms local PCM | Zero first-packet cold start |
Implementation & Configuration Checklist
- Pre-Render Voice Prompts: Generate ulaw_8000 PCM clips for greetings, disclosures, and "one moment while I check" fillers using ElevenLabs.
- Hash Dynamic Phrases in Valkey: Cache recurring FAQ answers by normalized hash with a 7-day TTL on the Vultr node.
- Stream Cached Frame Immediately: Inject the cached PCM buffer into LiveKit audio output track while the LLM processes tools.
# Cache static prompts in Valkey/NVMe
CACHE_STATIC_GREETINGS=true
FILLER_AUDIO_DIR=/app/cache/tts-ulaw
FinOps Engineering FAQ
Can listeners hear a splice between cached ElevenLabs audio and live Flash v2.5?
When generated with the exact same voice_id, model_id (eleven_flash_v2_5), and 8 kHz/16 kHz format, loudness normalization makes the transition seamless.
How much disk does 1,000 cached phrases take?
At 8 kHz ulaw (8 KB/sec), 1,000 four-second phrases occupy only 32 MB of RAM or NVMe.