How sjxchng/drumvoice works
DrumVoice accepts spoken drummer commands and returns structured intents for a metronome or sheet-music viewer. The documented workflow runs from the browser’s voice interface through the Express command endpoint, which tries the configured Gemini provider and falls back to deterministic parsing on failure. The README also describes metronome controls, page navigation and scheduled turns; their client-side implementation is in public/index.html, which is listed in the tree but was not sampled. Edges reflect the shown server calls and documented browser workflow.
Main entry points: commands.js Command API · index.html Voice and sheet UI · app.js HTTP app · PatternProcessor.js Regex fallback
Components 12
Web runtime
- Server entry
server.js - HTTP app
src/app.js
Command parsing
- Command API
src/routes/commands.js - Regex fallback
src/parser/PatternProcessor.js - Text and numbers
src/parser/normalizer.js
AI providers
- AI provider contract
src/providers/base.js - Provider selection
src/providers/index.js - Gemini parser
src/providers/gemini.js
Drummer interface
- Voice and sheet UI
public/index.html - Metronome controls
public/index.html - Sheet music viewer
public/index.html
Other components
- Drummer
Connections 12
- Drummer → Voice and sheet UI: speaks commands
README.md - Voice and sheet UI → Command API: submits commands
README.md - Server entry → HTTP app: starts
server.js - HTTP app → Command API: mounts API
src/app.js - Command API → Provider selection: calls provider
src/routes/commands.js - Command API → Regex fallback: falls back
src/routes/commands.js - Provider selection → Gemini parser: creates
src/providers/index.js - Gemini parser → AI provider contract: extends
src/providers/gemini.js - Regex fallback → Text and numbers: uses utilities
src/parser/PatternProcessor.js - Command API → Voice and sheet UI: serves interface
- Voice and sheet UI → Metronome controls: controls
README.md - Voice and sheet UI → Sheet music viewer: navigates
README.md