dsh-plugin-voice-dictation: Voice Dictation Plugin

DeepSeek Harness is a plugin-based system. In the web interface, commands typically need to be typed manually. The voice dictation plugin leverages the browser’s built-in speech recognition capability to directly convert voice into commands sent to the Agent, avoiding frequent input method switches.

Speak to Act: Adding Voice Dictation to DSH Web GUI — auto-send to Agent after speaking (pure frontend, no API Key required). Maintainer: dytom18. The plugin resolves the voice input integration issue on the web, achieving a closed loop from “speaking” to “sending”.

Core Features

The plugin provides a complete dictation loop with fault-tolerance mechanisms.

  • One-click Dictation & Auto-send: Click the floating button to start speaking; after recognition completes, it auto-sends to the Agent (can also be configured to only fill the input box).
  • Smart Integration: Preferentially uses DSH client API (setDraft+submit or conversation.send), and falls back to DOM-based input box writing on failure.
  • Draft Protection: When the input box already has content, it automatically appends to the draft instead of overwriting or sending prematurely.
  • Voice Commands: Supports undo (“cancel”, “redo”) and correction (“correct”, “discard last”) commands with semantic judgment on the entire sentence.
  • Draggable & Collapsible: The floating button can be dragged and its position persisted; toggle via Ctrl+Shift+M.
  • Auto-resume & Self-healing: Auto-resumes on browser mute timeout or network jitter; auto-rebuilds within 10 seconds if the component is removed.
  • Timeout Protection: Single dictation auto-terminates after 90 seconds to prevent the microphone from staying open.

Installation & Activation

The plugin is distributed via GitHub and must be installed under DSH’s web profile environment.

dsh plugin --profile web add github:dytom18/dsh-plugin-voice-dictation

After installation, restart the DSH service and refresh the browser page.

Typical Usage

  1. A purple 🎤 floating button will appear in the bottom right corner of the page.
  2. Click the button to start recording; click again to stop.
  3. By default, the recognition result is automatically sent to the current Agent.
  4. Use the shortcut Ctrl+Shift+M to toggle dictation anytime.

Applicable Scenarios & Notes

Suitable for: Users who need to issue commands quickly and want to minimize typing on mobile devices or in multi-tasking scenarios.

Notes:
* The plugin is a pure frontend implementation using the Web Speech API, requiring Chrome or Edge (Firefox is not supported).
* Microphone permission must be granted on first use.
* Completely quit DSH Desktop before installation on Windows.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye