Module 06
Voice AI in mixed reality
Add a talking assistant to your Quest app that answers in real time, acts through tools, never ships your API key and cannot run up a bill.
Advanced · 2 lessons · 1.5 h
When you finishA realtime voice assistant in your MR app, routed through a key-safe proxy, scoped to what your app can actually do, with hard spending limits and every feature still usable without voice.
The lessons
Module mission · Voice badge
Talk to your app
Ask out loud, get an answer, and let the voice press one of your app's own buttons.
Your app so far
The course builds one app on your headset, piece by piece. A piece counts as built when you have finished the lessons that build it. 0 of 6 built
- Passthrough appA sculpture you grab, recolour and reset in your roomNext
- Hand interactionPinch, grab and throw with your bare handsLater
- AI creatureGenerated with AI, made light enough for the QuestLater
- Room-aware sceneUses the Quest's own room dataLater
- PortalThrough your real wallLater
- Voice assistantWith the key kept off the headsetLater
About this module
Voice is the feature people remember after a demo, and the feature that goes wrong most expensively. A talking orb that changes your scene when you ask is impressive. The same orb with your API key inside the APK, or one that says "done" for a feature that does not exist, can cost you money and trust.
This module is built on two of my projects. AETHER VR is an orb companion for Quest 3 that talks through OpenAI's Realtime API while a desktop bridge holds the key. AETHER Studio is a mixed reality music studio whose "Orb" ran fully standalone on Quest for a developer competition, with a tiny Cloudflare Worker as the only server. Both keep the key off the headset. Both run tools in the app, not on a server. Both had failures worth knowing about before you hit them: a dead IPv6 route, a transcription prompt four characters over a limit, and a wear sensor that killed healthy sessions.
What you will do
- Realtime voice architecture. Why speech-to-speech realtime beats a speech-to-text → LLM → text-to-speech chain for an in-headset assistant, how WebRTC audio and the data channel fit together, and the two proven patterns for keeping the key off the device. You deploy a minimal proxy and connect your app to it.
- Tools, scope and cost control. How to design tools the model calls reliably, how to stop it inventing features, how to put deterministic guards between a transcript and a destructive action, and how to turn per-hour cost estimates into hard limits.
Before you start
- You can build, install and read logs from a Quest app (module 02).
- You have an OpenAI account (or another provider with a realtime speech API) and can create a separate project with a spending limit. Model names and prices in this module are dated; check them when you read this.
- For the standalone pattern: a free Cloudflare account.