Source code for the Chrome extension.
Play hands-free on chess.com by dictating moves in standard chess notation.
lichess.org has implemented voice commands, but chess.com does not have this feature.
Provides validation & feedback.
- Add extension's HTML elements.
- On speech recognition results:
- Preprocess (e.g. translate "queen play seven" to "Queen a7").
- Validate the command. Provide feedback if invalid.
- Execute the move (simulate two clicks).
- Chrome's webkitSpeechRecognition toolkit.
- The HTML classes on chess.com.
This project is derived from some great work from parsec209, who built a tool to click board coordinates like "56" on chess.com.
This project simplifies & expedites voice commands with the expressive standard notation. For example, we can now move with the command "Knight f3" instead of the two commands "71 (wait) 63".
I wish I knew that "Speak to Lichess" existed before building this project (could have probably re-used some code). Nonetheless, the name served as inspiration.