Triggering Voice Dictation With a DJI Mic Button
chikenhenwy · reddit · 2026-07-19
The author used Claude Code to repurpose the button on a DJI Mic Mini 2 lapel mic into a remote voice input switch, solving the annoyance of having to touch the keyboard to start dictation.
The key method was having Claude Code reverse-engineer the button: it discovered that the DJI mic has a camera shutter function, and pressing the transmitter button makes the receiver emit a volume-up HID event. When the receiver is plugged into a Mac via USB-C, the system recognizes this event. The author then used Karabiner-Elements to write a rule matching only DJI devices, remapping this button to the hands-free shortcut for Wispr Flow.
The result: you can press the lapel mic button from anywhere in the room to start/stop dictation, with text going directly into Claude Code or wherever the cursor is. Regular keyboard volume keys are unaffected since the rule targets only DJI devices. Note that the receiver must be plugged via USB, as Bluetooth mode doesn't expose button events. The project is open-source with a one-click install, and the original Mic Mini is also compatible.
More from coding & agent
- Cheaper OpenAI Agents API alternative: sandbox service undercutting E2B by 46% — airesearch12 · 2026-09-11
- His agent kill switch ran for months before he found it was wired to nothing — AnvilandCode · 2026-09-11
- Kernel's Browser Agents Can Now Pay Online Using Aliases, Never Touching Card Data — jeff_weinstein · 2026-09-11
- OpenAI opens up agent sandboxes: BYO or pick from Cloudflare, E2B, Modal, Vercel and more — threepointone · 2026-09-11
- SocialCrawl MCP lets agents search Reddit, YouTube, TikTok, X with one API key — dooddyman · 2026-09-11
- Astra builds a surprisingly polished Catan game in three.js, reusing past UI and 3D assets — FinanceYF5 · 2026-09-11