Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(agent-system): document the on-device Whisper STT provider

nirholasd634862f3718
diff --git a/docs/agent-system.md b/docs/agent-system.md
index d1efd16f3..deecb7fbf 100644
--- a/docs/agent-system.md
+++ b/docs/agent-system.md
@@ -363,12 +363,13 @@ An ElevenLabs config also carries `agentId`, the agent the voice belongs to. `Ru
### Speech-to-Text
-| Provider | Notes |
-|---------|-------|
-| `browser` (default) | Uses `window.SpeechRecognition` or `window.webkitSpeechRecognition`. Chrome/Edge only. Silently fails if unavailable. |
-| `none` | STT disabled. |
+| Provider | Class | Notes |
+|---------|-------|-------|
+| `browser` (default) | `BrowserSTT` | Uses `window.SpeechRecognition` or `window.webkitSpeechRecognition`. Chrome/Edge only. Silently fails if unavailable. |
+| `whisper` | `WhisperSTT` (`runtime/whisper-stt.js`) | On-device recognition via transformers.js: Moonshine for English (~63 MB), Whisper-base for other languages (~77 MB, 99 languages). Runs in every browser with WebAssembly, Firefox and Safari included, where `window.SpeechRecognition` is missing or ships audio to a vendor. Models are fetched once from the Hugging Face CDN and cached in the browser Cache API. Falls back to `BrowserSTT` when on-device recognition isn't supported (`onDeviceSupported()`), and falls back further to the server-side `/api/asr` (NVIDIA Riva) lane if the on-device pass fails. |
+| `none` | n/a | STT disabled. |
-STT starts listening when `runtime.listen()` is called, which the UI typically triggers on mic button press. Interim results fire `voice:transcript` events with `final: false`; the final transcript fires with `final: true` and the runtime feeds it into `send()`.
+STT starts listening when `runtime.listen()` is called, which the UI typically triggers on mic button press. Interim results fire `voice:transcript` events with `final: false`; the final transcript fires with `final: true` and the runtime feeds it into `send()`. `<agent-3d>` shows the mic button whenever a browser recognizer exists OR the manifest sets `voice.stt.provider` to `"whisper"`, so Firefox and Safari visitors (no `window.SpeechRecognition`) still get push-to-talk on an agent configured for on-device STT.
---