Environment:23blocks OS Ai maestro Web Audio API
| Knowledge Sources | |
|---|---|
| Domains | Client, Audio |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
The Web Audio API: the browser's real-time audio processing graph, used to measure microphone speech energy that drives the agent avatar's facial animation.
Description
AI Maestro's speech-level module (`lib/speech-level.ts` and `hooks/useSpeechLevel.ts`) opens a microphone stream via `getUserMedia`, routes it through an `AnalyserNode`, and computes RMS energy in the time domain. That energy feeds the avatar-motion model so the agent's face animates in sync with the user's voice. The analyser runs on an animation frame loop with delta-time smoothing.
Usage
Use this environment for any client-side implementation that analyses microphone audio for face animation or voice-activity detection. Requires a user permission grant for microphone access.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| Browser | Modern browser with Web Audio | Universal in current browsers |
| Permission | Microphone (`getUserMedia`) | User must grant |
Dependencies
No external dependencies; Web Audio is a browser built-in.