Badger Commando
Voice commands for PC games. Say "raise the landing gear" and the right keys are pressed, with everything running on your own computer.
This is an early preview (version 0.8.0), shared as source code. It has been tested with recorded speech but not yet through a full session in either game, so expect to adjust phrases and key timings.
Speak naturally
- Commands are matched by meaning, not only by exact wording: "ask for permission to land" finds "request landing permission"
- Opposites such as up and down or next and previous are kept apart, and a command only fires when the match is confident
- Risky commands such as eject or self destruct wait for you to say "confirm"
Runs locally
- Speech recognition, matching and key presses all happen on your PC, with no cloud service, account or usage fees
- Choose between several speech engines (Moonshine, Parakeet, Whisper and Vosk) and compare them on the same recording
- The network is used only to download the speech and voice models you pick, once
One profile per game
- Each game has a plain text file mapping phrases to keys, chords such as Ctrl+Shift+F5, holds, double taps, mouse buttons, or the buttons, sticks and triggers of a virtual Xbox controller
- The profile switches automatically to the game that has focus
- Included: Star Citizen (272 commands for version 4.10.2) and Destiny 2 (34 commands)
- For Star Citizen, 71 of those are actions the game gives no key, such as deploying or retracting the landing gear, setting NAV or SCM mode and opening all doors. A layout file to import in the game binds them to spare keys, and can be merged with your own layout so joystick bindings are kept
Reads commands back
- Optionally confirms each command aloud, such as "lower the landing gear, check", and says "repeat last" when it could not match what it heard. You choose whether it does that always, only after push-to-talk, or never, so an open microphone does not answer your other conversations
- Pick the voice: the ones built into Windows, Kokoro, or any of about 180 Piper voices in many languages, installed with one click
- Choose which sound output it speaks through, such as your headset while the game uses the speakers
Test without the game
A control panel in your browser shows what was heard, which command it matched and the keys it would send, without pressing anything. When a phrase is misheard, one click teaches it to the right command.
It starts in this dry-run mode. Switch Input to Live when you want keys sent; they go to whichever window has focus, like a physical key press. A banner warns when that program runs as administrator and would ignore them.
A log records what was heard, which command it matched and every key press sent, so you can see what happened when a game does not respond.
Each game can use its own way of sending keys: virtual keys (as SendKeys does), hardware scancodes, or an optional keyboard filter driver for games that ignore the other two. The driver method uses the separately installed Interception driver and has not yet been tested against it; check a game's anti-cheat rules before using it. How long each key is held can also be set per game.
Get it
Download the source (version 0.8.0, zip, 185 KB). It needs Windows 11 and uv, which installs Python and the libraries on first run. Unzip it, then in that folder run:
uv run python -m badger_commando
Gamepad output is optional: uv sync --extra gamepad adds it and installs the ViGEmBus virtual controller driver.
To confirm your download is intact, run Get-FileHash on it in PowerShell and compare the result with this SHA-256:C58F5415CA44202BC6560488A9C1B78A080162DD06ECA6A22654F3B6126FBC60
Badger Commando sends key presses to the game the way a macro keyboard would. Check that a game's rules and anti-cheat allow that before using it online.