Luna / Voice AI / System design

Multilingual voice AI stack.

I led the research, product design and technical specification of Luna’s multilingual mobile voice agent—from realtime transport and language routing to orchestration, synthesis, observability and safeguards.

The problem

Luna needed a mobile voice agent that supported 14 app languages and Hindi–English code-switching without feeling slow or unsafe.

The task was to specify the complete realtime loop, not simply select a speech-to-text provider.

Constraints

The stack had to work under real product conditions, so I turned the constraints into evaluation gates.

  • Speech

    Code-switching, accents, names, numbers and health terms.

  • Realtime behaviour

    Finalisation, turn detection, interruptions and weak networks.

  • Control

    Transcript provenance, observable errors and safe fallbacks.

  • Evidence

    An internal corpus because public benchmarks did not represent our users.

200clips in the decision corpus
31.3mof speech across priority slices
<$4recorded API usage

Decisions

I chose an observable cascaded architecture, constrained language routing and distinct provider roles.

Specified production stack

LiveKit transport → streaming STT → application logic and tools → LLM → Cartesia TTS

  • Architecture

    Keep the cascaded stack until native models passed the same safety gates.

  • Language policy

    Start with the app language, English and evidence-based secondary languages.

  • Provider roles

    ElevenLabs primary, Soniox failover and OpenAI for difficult cases.

  • Validation

    Use a sealed holdout, LiveKit parity checks and a native-model gate.

Finalisation latency, P95

ElevenLabs · hinted937 ms
Soniox · hinted1.74 s
OpenAI · hinted3.37 s

Trade-offs

No architecture or provider won every dimension, so the trade-offs stayed explicit.

  • Speed over marginal accuracy

    More than three seconds was too slow for the default path.

  • Control over novelty

    Cascaded speech offered measurable errors and safer tool use.

  • Constrained routing

    A smaller language set reduced ambiguity and complexity.

  • Validated support

    A provider list was a claim, not proof of readiness.

Result

Three production-test stacks, a constrained multilingual routing policy and a reproducible evaluation framework.

Next project / Agentic AI experience Curating Luna's agentic AI experience.

See the in-app experience and messaging integration direction.