Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:23blocks OS Ai maestro Web Audio API

From Leeroopedia
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.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment