rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Linj1k/dsh-whisper-local
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Local, offline speech recognition for the DeepSeek Harness Web GUI, powered by
whisper.cpp. It plugs into the
Harness voice-input pipeline as a host-local speech provider: audio is
recorded by the browser, transcribed on the Host machine, and never sent over
the network.
whisper_model so the assistant can inspect and change the model.This is a community bundle, not an official DeepSeek plugin.
whisper-cli.exe runs on the CPU; the model and
audio stay on the machine.language: auto lets Whisper
identify each recording's language; any of the 99 Whisper languages can still
be forced from the voice settings.whisper_model.Browser (Harness composer)
└─ microphone button records 16 kHz mono PCM WAV
└─ speech Remote sends the recording to the Host
└─ whisper-local SpeechProvider
├─ writes a temporary WAV
├─ spawns whisper-cli.exe with the selected GGML model
├─ reads the text output
└─ deletes the temporary files and returns the transcript
The provider registers through ctx.speechToText.register() and advertises
itself as location: 'host-local', so the voice UI shows preparation state and
lets the user download the model when needed.
| Requirement | Details |
|---|---|
| DeepSeek Harness | Desktop/Web build with the experimental Voice Input bundle enabled |
| OS | Windows 10/11 x64 (the pinned runtime is a Windows CPU build) |
| Runtime | tar.exe (built into Windows 10/11) for extracting the runtime archive |
| Disk | ~90 MB for the extracted runtime + 31–547 MB per model (see table) |
| CPU | Any x64 CPU; more cores and threads improve speed. GPU is not used |
| Microphone | OS + browser microphone permission |
No Node.js, Python, compiler, or CUDA installation is required at runtime.
Enable the official Voice Input bundle: Plugins → Voice Input.
Open Plugins → Add plugin → Install a third-party plugin.
Enter the repository Git address:
git+https://github.com/Linj1k/dsh-whisper-local.git
Pin a release for reproducibility with
git+https://github.com/Linj1k/dsh-whisper-local.git#v1.3.0.
Confirm the bundle is enabled. Its patch selects whisper-local with
language: auto for the voice module and registers the whisper_model
tool.
If the Host module was added while Harness is running and the provider does not appear, restart Harness once. Browser-only UI changes are hot-reloaded.
Download dsh-whisper-local-1.3.0.tgz from the GitHub Releases page and point
Plugins → Add plugin at the file.
The package name is dsh-whisper-local. Once the maintainer has run
npm publish, install it by entering the package name (optionally pinned, for
example dsh-whisper-local@1.3.0) in Plugins → Add plugin.
Install the absolute path of this folder through Plugins → Add plugin. Useful for development.
Open Plugins → Whisper local. The bundle page offers:
The selection is written through the Harness Settings service into the profile configuration, so it survives restarts. If the chosen model is not downloaded yet, preparation starts automatically; progress is shown in the Voice Input bundle details (Download and prepare).
Whisper local advertises 99 languages plus auto. Change the language in
Plugins → Voice Input → bundle details → Language. The official selector
displays translated labels for auto, en, zh, ja, ko; other languages
appear as ISO codes such as fr, de, es, ja.
The default is auto (automatic detection), not a fixed language. French is
not forced: a recording is detected on its own unless a specific language is
selected. Automatic detection is a good default for mixed-language use; forcing
the exact language improves reliability on short or noisy recordings.
All models are multilingual Whisper GGML builds, hosted by ggerganov/whisper.cpp.
| Key | File | Size (binary) | Notes |
|---|---|---|---|
tiny-q5_1 |
ggml-tiny-q5_1.bin |
~31 MB | Fastest, lowest accuracy |
base-q5_1 |
ggml-base-q5_1.bin |
~57 MB | Fast, basic accuracy |
small-q5_1 |
ggml-small-q5_1.bin |
~181 MB | Default; good balance |
medium-q5_0 |
ggml-medium-q5_0.bin |
~514 MB | More accurate, slower |
large-v3-turbo-q5_0 |
ggml-large-v3-turbo-q5_0.bin |
~547 MB | Best multilingual accuracy |
Measured on an AMD Ryzen 9 9950X3D with 8 threads, for roughly 10 seconds of speech:
| Model | French | Japanese |
|---|---|---|
small-q5_1 |
~1.3 s | ~1.2 s |
large-v3-turbo-q5_0 |
~3.3 s | ~4.0 s |
The pinned whisper.cpp runtime is the official nightly
b5454 Windows x64 OpenBLAS build, verified by its release SHA-256.
The bundle patch (cordis.patch.yml) supplies defaults:
- insert:
- id: whisper-local
name: 'dsh-whisper-local'
config:
dataRoot: !!js dshHomePath('speech-to-text', 'whisper-local')
model: small-q5_1
threads: 8
timeoutMs: 180000
- id: speech-to-text
config:
defaultProvider: whisper-local
language: auto
| Field | Default | Meaning |
|---|---|---|
dataRoot |
%USERPROFILE%\.dsh\speech-to-text\whisper-local |
Managed location for runtime, models and diagnostics |
model |
small-q5_1 |
One of the model keys above; also editable from the UI |
threads |
8 |
CPU threads passed to whisper-cli |
timeoutMs |
180000 |
Per-transcription deadline |
modelPath |
unset | Use an existing GGML model file instead of a managed download |
whisperCli |
unset | Use an existing whisper-cli.exe instead of the managed runtime |
User overrides are stored in the profile's patch layer and take precedence over the bundle defaults. The model selected from the UI is written there as well.
The bundle registers the whisper_model tool:
| Action | Description |
|---|---|
list |
Model catalogue, downloaded state, active model, preparation phase, active downloads |
download |
Download a model in the background without changing the active model |
set |
Select a model and persist it through Settings; downloads it unless prepare=false |
prepare |
Prepare/download the currently selected model |
Example: switch to the large model after downloading it in the background.
{ "action": "download", "model": "large-v3-turbo-q5_0" }
{ "action": "set", "model": "large-v3-turbo-q5_0", "prepare": false }
finally block after transcription.dataRoot:runtime/ | extracted whisper.cpp build and runtime.json marker;model/ | downloaded GGML models;cache/ | downloaded runtime archive;status.json | diagnostic snapshot (provider, model, languages, selected
language, readiness). No audio or transcript content is stored there.cordis.patch.yml; the model
choice contains no sensitive data.The microphone says the provider is not ready. Open Plugins → Voice Input → details and use Download and prepare. The setup card downloads the runtime and model and shows progress.
The model selector shows "settings unavailable".
The Harness Settings service or configForms client service is not mounted in
this profile. Use the voice bundle's preparation page or edit model in the
profile patch.
No audio is recognized.
Check the OS microphone permission, that a model is prepared, and the selected
language. Try auto, or force the spoken language. For quiet/short recordings,
a larger model helps.
The plugin row is failed after an update.
The bundled provider.js is plain JavaScript and needs no build, but Host
modules are loaded once per process. Toggling the row or restarting Harness
reloads the module. Check the row's diagnostic in Plugins.
Diagnostics.
dataRoot/status.json reports the active model, advertised language count,
selected provider/language and readiness. The agent can also call
whisper_model with action: "list".
No build step. The bundle is plain ESM/JavaScript.
| File | Role |
|---|---|
package.json |
Bundle manifest (dsh.bundle.patch, dsh.client, exports) |
cordis.patch.yml |
Cordis rows: the provider and the voice selection override |
index.js |
Cordis entry; loads Schemastery from the dsh installation and declares the volatile model Config field |
provider.js |
Speech provider: preparation, downloads, verification, whisper-cli execution, whisper_model tool |
client.js |
Browser page: model selector through ctx.configForms |
locale/*.json |
Plugin-manager display metadata (en, fr, zh) |
tests/*.mjs |
Provider and client tests |
tests/fixtures/*.wav |
Small multilingual TTS fixtures for the integration tests |
The provider tests run real transcription with the prepared model in the
default dataRoot, so prepare the runtime/model first (or point
WHISPER_LOCAL_DATA_ROOT at a prepared directory):
node tests/local-provider.test.mjs
node tests/client.test.mjs
The provider suite covers: provider registration and language list, idempotent preparation, real French transcription, unprepared-state errors, explicit English/German/Spanish/Japanese transcription, automatic detection, model listing through the agent tool, persistence through Settings and invalid model rejection.
whisperCli/runtime and extraction path.large-v3-turbo needs roughly 1–2 GB of RAM during inference and is slower
than small; choose based on your hardware.npm login # once per machine
npm pack # produces dsh-whisper-local-1.3.0.tgz
git tag -a v1.3.0 -m "v1.3.0"
git push origin main --tags
npm publish --access public
The GitHub release can attach the tarball produced by npm pack. The npm name
dsh-whisper-local is available and the package no longer sets private.
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness、deepseek-harness-plugin。