AI, ML & Computer Vision Meetup · October 15, 2026
Foreground & background interactions in spoken dialog systems
Abhinav Tushar · Co-founder, Panini
About
An AI product technology lab from Bengaluru
Eight years putting voice AI in front of real callers.
Skit.ai · 2018–2024
Head of AI, founding ML engineer
lepisma.xyz/wiki/about · paninihq.com · hello@paninihq.com
The problem
600–1500 ms
of dead time before a reply starts to feel slow
Panini · The two-loop architecture for voice AI
The problem
Fast enough to be the frontend
…but not always correct
Smart enough to get it right
…but too slow to be the frontend
We need the speed of one and the brains of the other.
Panini · The two-loop architecture for voice AI
01 · Today
Cascade
speech in
→
ASR
→
LLM
→
TTS
→
speech out
End-to-end
speech in
→
Speech-to-speech model
→
speech out
Either way, one loop listens, thinks and talks.
Panini · The two-loop architecture for voice AI
02 · Patterns
02 · Patterns
The most common paradigm today
Foreground
calls →
Background tool
→ result back
The foreground calls the background and uses what comes back.
Simple to integrate. The foreground stays in charge.
Panini · The two-loop architecture for voice AI
02 · Patterns
Missed or needless tool calls
Underspecified queries
Results misread or dropped
The smallest model in the system is making the biggest decisions.
Panini · The two-loop architecture for voice AI
03 · The idea
Foreground · fast
Talks in real time, never blocks
Background · slow
Reasons asynchronously, often a Larger LLM
The hard part is how they talk to each other.
Panini · The two-loop architecture for voice AI
03 · The idea
Panini · The two-loop architecture for voice AI
04 · The flip
More powerful patterns
4.1 Enrichment & correction
4.2 Utterance hot swapping
4.3 Re-engagement, speculation & prefetch
4.1 · Patterns
The background steers by editing the foreground's context.
Panini · The two-loop architecture for voice AI
4.1 · Demo
4.2 · Patterns
Swap the words going to TTS, mid-speech.
“…actually, …”
KAME-like behaviour, no new model to train.
KAME: Tandem Architecture for Enhancing Knowledge in Real-Time Speech-to-Speech Conversational AI · Sakana AI, ICASSP 2026
Panini · The two-loop architecture for voice AI
4.2 · Demo
4.3 · Patterns
When to surface a result
Prefetch what's likely next: scores, weather.
Panini · The two-loop architecture for voice AI
Takeaway
Engineered first, end-to-end later
ASR → MT → TTS cascades, years before direct translation
VAD and echo cancellation, before full-duplex models
Endpointing rules and classifiers, before native turn-taking
SSML prosody tags and fillers, before expressive generation
Thanks
Post
lepisma.xyz · Foreground & background interactions
Code
Newsletter
Subscribe to Computational Conversations
Panini
paninihq.com · hello@paninihq.com
These slides were generated with an AI tool. Core content is from my original post.