Environment:23blocks OS Ai maestro Web Speech API
| Knowledge Sources | |
|---|---|
| Domains | Client, Audio |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
The Web Speech API: the browser's `SpeechSynthesis` interface, used as one provider in AI Maestro's multi-provider text-to-speech system.
Description
AI Maestro's TTS module (`lib/tts.ts`, `hooks/useTTS.ts`) supports multiple TTS providers. The browser-native `speechSynthesis` interface is one of them — it requires no network and is available offline, but its voice quality and availability vary by browser and OS. The TTS hook selects a provider based on availability and user preference, strips ANSI escape codes from agent output before speaking, and manages utterance queueing. The DOM is used to dispatch speech synthesis events.
Usage
Use this environment for client-side text-to-speech via the browser's built-in speech synthesis. For higher-quality cloud voices, an external provider is used instead.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| Browser | Modern browser with `speechSynthesis` | Voices vary by OS |
Dependencies
No external dependencies; Web Speech is a browser built-in.