xrai

· weekly voice jarvis

This Week in XRAI #2 — Voice + jARvis

XRAI is a format any LLM can author. That claim has teeth only if authoring is frictionless. This week: how Portals (the reference runtime) gets from speech to a valid XRAI scene in under 2 seconds.

The pipeline

mic (RN side)
  → VAD (Silero local, 95% confidence threshold)
  → STT (Gemini Live Native Audio OR local Whisper fallback)
  → local intent parser (95% of commands resolved with zero cloud cost)
  → Gemini 2.5 Flash fallback for ambiguous utterances
  → JSON-Schema-constrained bridge message
  → Unity SceneComposer.AddObject()
  → XRAI export on save

Four facts that matter:

  1. 95% of commands are parsed locally. No round trip to a cloud model for "make a blue cube." The XRAI scene emerges without a network. (See src/services/voice/localIntentParser.ts in the Portals repo for the vocab.)
  2. The fallback is grounded. When local confidence dips below threshold, Gemini Live gets the scene context + the current XRAI graph as additional input. It completes an XRAI fragment, not an English description.
  3. Confidence survives into XRAI. Every object emitted by voice carries its voice_prompt + latency_ms in metadata. Downstream tooling can see which entities were spoken vs tapped, and with what agent.
  4. jARvis is the agent swarm that authors + queries + evolves XRAI graphs across sessions. Voice is one input modality; the goal is voice + gesture + gaze + predictive — all emitting the same format.

What we'd like feedback on

Cross-reference

— @jamestunick