Introduction¶
DeepSeek Harness’s voice input requires manually clicking the microphone button, which can easily interrupt your thought flow during rapid, continuous input. Controlling recording and stopping via a keyboard shortcut reduces mouse operations and improves input efficiency.
What Is This¶
This is a plugin that provides push-to-talk recording for DeepSeek Harness. Hold down a designated hotkey to start recording, and release it to stop and transcribe into text. The plugin modifies the client UI to implement this functionality and must be used in conjunction with DeepSeek Harness’s voice input feature.
Core Features¶
- Hold a hotkey to start or resume recording
- Release the hotkey to stop recording and transcribe
- Cancel short taps that never begin recording
- Automatically clear error messages from the voice toolbar
- Does not interfere with mouse-driven UI operations
- Hotkey is inactive when the voice model is not ready
Installation & Enablement¶
- Ensure the experimental voice input plugin (Plugins → Voice input) is enabled and the recognition model is ready
- In the Harness Web UI plugin list, add and enable this plugin via the official command (follow the command provided in the actual UI)
- Edit
HOTKEY_CODEat the top ofclient.jsto change the hotkey (see Typical Usage) - Refresh the Harness Web page after making changes
Typical Usage¶
- Ensure microphone permission has been granted to the Harness domain (HTTPS or localhost)
- Enable the experimental voice input plugin in the Harness Web UI and prepare the recognition model
- Open
client.jsin the plugin directory and locateHOTKEY_CODEat the top:
const HOTKEY_CODE = 'AltRight'; // Default is Right Alt/Option
- You can change it to other supported key codes such as
'ShiftRight','ControlRight', or'Backquote'(modifier keys are recommended) - Save the file and refresh the Harness Web page
- Hold the hotkey to start recording, release to stop and transcribe into text (transcribed content still needs to be confirmed before sending)
Compatibility & Notes¶
- The plugin is currently in an experimental stage and depends on internal implementation details (tested on version 0.2.2-rc.5)
- UI elements are located via aria-label and
data-voice-activityattributes; upstream changes may cause it to break - If it breaks, only the hotkey stops working; mouse operations are unaffected, and no accidental recording or sending will occur
- The hotkey will not trigger when voice input is not ready (model not prepared), avoiding interference with normal input
Uninstall¶
Disable or remove the plugin from the plugin list in the Harness Web UI, then refresh the page.
Summary¶
This plugin controls voice recording and stopping via keyboard shortcuts, reducing mouse operations. It is suitable for scenarios requiring continuous voice input. Please read the source code and verify the license before use, and ensure compatibility with your current Harness version.
- Plugin directory: https://www.skillhub.cn/plugins/winston-zhang-orz/dsh-voice-push-to-talk
- GitHub: https://github.com/winston-zhang-orz/dsh-voice-push-to-talk