Preface¶
Writing prompts in DeepSeek Harness (DSH) mostly involves typing. When dealing with long sentences, dictating requirements, or thinking while walking, switching to separate dictation tools and pasting back interrupts the flow. It also often raises concerns about “whether to send audio to the cloud.” The community plugin dsh-voice-input (Maintainer: moazzamak, Category: Model Inference) targets the Web GUI’s conversation input box (composer): it adds a microphone button to the toolbar, records audio within the browser, sends the audio to the local DSH process, and decodes it locally using faster-whisper (CPU by default) or whisper.cpp / Vulkan (optional GPU engine). Recognition results are appended to the current draft; it does not press Enter to send for you. Audio is not uploaded to third-party STT services; recognition and optional “polishing” are completed entirely within your own environment.
What is this¶
In short: Offline local speech-to-text for the DSH composer—click the microphone, speak, click stop, and the text is written into the draft. You can correct mistakes before sending.
- Repository: moazzamak/dsh-voice-input
- Directory Page: SkillHub Plugin Page
- Current Package Version (package.json): 0.6.1, License: MIT
Core Features¶
Local Recording and Recognition¶
The microphone button appears in the composer tool row, to the left of the model selector. Flow: Idle (gray microphone) → Recording (red stop block, level meter, m:ss timer) → Transcribing → Text is appended to existing draft content separated by a space; it does not send automatically.
Audio is recorded in the browser and POSTed to the local harness process for decoding; the model is loaded once and kept warm, so subsequent recordings mainly only require decoding. The README reports tests on a Ryzen 7 7800X3D with base.en in a warm state: CPU engine approximately 0.4 s/segment, GPU engine approximately 0.1 s/segment; previously, reloading the model took about 10 s each time.
Real-time Text (CPU Engine)¶
During recording, audio segments are handed over approximately every second; VAD determines pauses based on the microphone noise floor. Each pause triggers a decode of the recorded portion and rewrites the draft. A cursor pulse indicates the position for the next word. After stopping, recognition is re-run on the entire segment and replaced with the final draft, correcting misheard parts from the live phase. Segmentation relies on silence rather than fixed duration to avoid truncating at half-words, which causes recognition to “complete” with fake words.
Typing during input is not blocked: the text you are currently typing is preserved, and live text is inserted after it.
Dual Engine¶
| CPU (Default) | GPU (whisper.cpp) |
|
|---|---|---|
| Decoding | faster-whisper / CTranslate2 | whisper.cpp |
| Acceleration | CUDA if NVIDIA is available | Vulkan (AMD, Intel, NVIDIA) |
Warm Latency (base.en) |
~0.4 s | ~0.1 s |
| First Run | ~0.7 s model load | 1.7–3.3 s (Vulkan pipeline compilation) |
| Live Text | Progressive display | Single update when ready |
| GPU Resident | None | ~418 MB model copy per engine |
Default CPU: Sub-second warm-up, progressive text output, no accumulated GPU state. The bundled whisper.cpp is primarily for scenarios where CTranslate2 is difficult to use on Windows (e.g., AMD GPUs or CUDA-only setups); the config line allows setting backend: auto or ggml to force the GGML engine.
Level Meter and Silence Hint¶
14 level bars come from an AnalyserNode in the same stream as recording, used to distinguish between “actually recording” and “microphone muted”; the Analyser is not connected to speaker output to avoid feedback. After approximately 1.5 s of silence, the level meter dims and prompts no sound — check your microphone.
Cleanup (Polish) Pass¶
After recognition is complete, the text can be handed to the routing model selected in the current deployment for lightweight cleaning: removing fillers (um, uh, like, etc.), merging stutters, adding punctuation, and fixing obvious mishearings; changing meaning, translating, or modifying identifiers/terminology is forbidden. When complete, a cleaned up tag appears next to the button.
Failure Protection: If cleanup encounters an error/timeout/empty result, a length change of less than half or greater than 1.8x (indicating the model is “answering” rather than cleaning), or if routing cannot be parsed, the original Whisper text is preserved and a message is written to the host log. You can turn it off with polish: off, or specify a cheap routing model using polishProvider + polishModel; the voice_transcribe tool supports a single polish: false. Defaults are polish: conservative and polishReasoning: off to avoid inheriting high-reasoning settings that lead to long periods with no draft increments.
Environment and Requirements¶
- A DSH installation with the Web GUI (
webprofile). - Python 3.9+ in PATH (use
pythonon Windows,python3on other systems) for one-time engine setup. - uv is optional; used if available, otherwise pip is used.
- Chromium-based browsers or Firefox with microphone support.
- GPU Engine Only: Vulkan GPU + Windows’ built-in whisper.cpp Vulkan build; first GGML model download is approximately 142 MB.
Node >=20 (package.json engines).
Installation and Activation¶
Installation commands must match the README, and the dsh plugin profile must be the same as the profile used to start DSH (dsh web is fixed to the web profile; dsh web --profile other does not exist).
- Install the plugin into the web profile:
dsh plugin --profile web add github:moazzamak/dsh-voice-input
- Build the engine once locally (creates a venv inside the installed package and pre-pulls the default model):
python "$HOME/.dsh/profiles/web/node_modules/dsh-voice-input/python/setup.py"
Windows (PowerShell) path example:
dsh plugin --profile web add github:moazzamak/dsh-voice-input
python "$env:USERPROFILE\.dsh\profiles\web\node_modules\dsh-voice-input\python\setup.py"
- Restart DSH.
Other installation methods (README): pnpm pack in the repo then dsh plugin --profile web add ./dsh-voice-input-0.1.0.tgz; local path add /path/to/dsh-voice-input; or add dsh-voice-input if published to npm. For git installation, pnpm ≥10 does not require allowing prepare for this package (no build steps).
Typical Usage (Web GUI)¶
- Open the DSH Web composer and confirm microphone permissions.
- Click the gray microphone to start; speak into the mic and observe if the level meter is moving.
- Click stop again; wait for
transcribing…, and recognized text (and possible cleanup) will appear at the end of the draft. - Correct mistakes or add completions yourself, and press Enter to send—the plugin will not send on your behalf.
On failure, a red message appears next to the button (permission denied, no speech, engine error, etc.).
Use Cases and Notes¶
Suitable for: Users who want to dictate requirements in DSH conversations but do not want to hand audio over to cloud STT; local machines with sufficient CPU/GPU to run Whisper; daily development already using the web profile.
Notes:
- The plugin runs with the permissions of the current DSH process. The Python engine and model files reside under
node_modules/dsh-voice-inputwithin the profile; please read the source code and MIT license before installation. - Cleanup relies on model routing available in the deployment; if offline or no routing is available, the original Whisper text should still be produced.
- The GPU engine is primarily bundled by the maintainer for the Windows + Vulkan path; for Linux and other environments, refer to the README’s instructions at the time. The default CPU is usually sufficient.
- Community directories like SkillHub have no official affiliation with DeepSeek / Hiquad. The plugin comes from a community maintainer and is not an entry in an “official app store.”
Conclusion¶
dsh-voice-input brings voice input in the composer into a closed loop of “Browser Records, Local Decodes, Draft Edits, User Sends”: it defaults to faster-whisper for progressive text output, with optional whisper.cpp to accommodate non-CUDA GPUs; optional cleanup removes verbal impurities without changing the meaning. If you frequently write long prompts in DSH Web, it is worth installing once via the official commands and running setup.py to get it working.
- Directory Page: https://www.skillhub.cn/plugins/moazzamak/dsh-voice-input
- GitHub: https://github.com/moazzamak/dsh-voice-input