The idea
Say "knight to f3" and a 3D knight hops across the board. Capture something and the piece gets smashed into shards with a shockwave. You can play a friend on the same screen, or a Stockfish "wizard" at one of seven strengths, from Apprentice to Unbound.
Why
Voice interfaces usually fail in the same place: the gap between what you said and what the computer heard. Chess is a great test bed for that problem. The vocabulary is small and strict, every command can be checked against the rules, and a misheard move is immediately obvious.
It also had to be fun. A voice UI that only works when you speak like a robot isn't a good voice UI.
Approach
- A move pipeline, not a parser. Whatever you say becomes a move intent, which is resolved against the legal moves on the board before anything happens. "Knight to f3" works. So does "night to f3", because speech engines mishear chess constantly and the normalizer maps homophones like "night" and "rock" back to pieces. "E takes d5" works too.
- The best available ears. The app uses the browser's built-in speech recognition where it exists (Chrome, Edge, Safari). Where it doesn't, like Firefox, or when you turn on high accuracy, it falls back to Whisper. That's either a local model running in a web worker, or an optional server endpoint primed with chess vocabulary.
- Hands-free when you want it. Hold Space for push-to-talk, or switch on a voice-activity detector and just talk. Meta commands like "undo", "flip" and "resign" work by voice too.
- Animation as confirmation. Every move gets a physical response: hops, capture smashes, castling, promotion, and a toppled king at mate. The animation is how you know the computer understood you, and the game can also read moves and prompts back out loud.
- Always a fallback. There's an accessible 2D board, drag and click input, and a type box. Voice is the headline, not the only door.
Decisions & trade-offs
- Test against a corpus, not vibes. The voice parser is checked against a synthetic set of 354 spoken phrasings, so "it seems to work" became a number.
- Calibrate the difficulty. The first difficulty ladder was far too steep, and one tier even beat the tier above it. A calibration script played the tiers against each other, and the ladder was retuned from the results.
- Pieces that read from above. Knights were rebuilt from primitive shapes so they look like horses from the steep camera angle, instead of indistinct lumps.
- Small details, big annoyances. Holding Space used to scroll the page to the bottom. Now every Space press outside a control is captured for push-to-talk.
What I'd try next
- A wizard with a personality: spoken trash talk and commentary, not just move read-backs.
- Teaching mode, where the wizard explains why your move was a blunder, out loud.