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.

Original post →

More from coding & agent

coding & agent channel →