Introduction¶
The voice input bundle built into DeepSeek Harness (DSH) ships with a local speech recognizer (SenseVoice). Before use, it requires downloading a model (239 MB INT8 or 938 MB FP32) and performs inference on the CPU. For scenarios with limited local compute or where reducing inference latency is a priority, calling a cloud-based ASR API directly is more suitable. The norwinyu/dsh-deepseek-asr plugin replaces DSH’s voice input recognizer with DeepSeek’s managed ASR service — no model download required, no local inference required.
What It Is¶
norwinyu/dsh-deepseek-asr is a DeepSeek Harness plugin categorized under “Model Inference.” It leverages DSH’s plugin registration mechanism to replace the recognizer in the built-in voice input bundle, sending audio captured in the browser to DeepSeek’s POST /v1/tools/asr endpoint and returning transcribed text. The plugin itself holds no model weights and performs no local inference; all computation is handled by DeepSeek’s cloud service.
Key Features¶
- No local model download: Ready to use immediately — no first-run model download step.
- No local inference: Recognition latency no longer competes with other tasks on the host.
- Native UI preserved: Provides a recognizer, not a UI component. The microphone button, settings page, draft insertion, and other elements remain unchanged.
- Usage-based billing: Calls DeepSeek’s paid ASR API, billed by recording duration.
How It Works¶
The plugin uses a patch file (cordis.patch.yml) to modify the configuration of DSH’s built-in voice input bundle, redirecting the recognizer registry to a cloud provider and disabling the local SenseVoice provider. The recognizer reads the DEEPSEEK_API_KEY environment variable via DSH’s Credentials service, sends the 16 kHz mono PCM16 WAV audio captured in the browser to the DeepSeek API as multipart/form-data, and receives a result containing the transcribed text, recording duration, and inference duration. Audio is held in memory only until the request completes — it is never persisted to storage or attached to session events.
Installation & Activation¶
Before installing, ensure the following prerequisites are met:
- DSH version >= 0.2.2-rc.1 and < 0.3.0
- The built-in voice input bundle (@deepseek-ai/dsh-experimental-voice-input-bundle) is enabled
- DEEPSEEK_API_KEY is configured in DSH’s Settings → Models
Installation methods:
From the plugin index (recommended):
1. Enable “Custom plugin indexes” in the plugin manager.
2. Open Discover → Add index source and paste https://norwinyu.github.io/dsh-deepseek-asr/index.json.
3. Open DeepSeek ASR, install the version from the list, then refresh.
From npm:
dsh plugin --profile <name> add dsh-deepseek-asr@0.1.3
From Git (stable release):
dsh plugin --profile <name> add git+https://github.com/NorwinYu/dsh-deepseek-asr.git#v0.1.3
Typical Usage¶
After installation, the voice input workflow is the same as when using the built-in recognizer:
1. Click the microphone button and allow browser access to the microphone.
2. A real-time level meter is displayed while recording.
3. After clicking stop, the transcribed text appears in the editor, where you can edit it before sending or discarding.
Language and input device are selected in the voice settings. The recognition endpoint auto-detects language, defaulting to auto.
Configuration¶
The plugin supports configuration overrides via cordis.patch.yml. Default values are as follows:
- id: speech-to-text-deepseek
config:
apiKeyEnv: DEEPSEEK_API_KEY
requestTimeoutMs: 120000
| Field | Default | Description |
|---|---|---|
providerId |
deepseek-asr |
Registry ID; must match the defaultProvider in the speech-to-text config entry |
displayName |
DeepSeek ASR |
Name displayed in voice settings |
endpoint |
https://api.deepseek.com/v1/tools/asr |
DeepSeek ASR endpoint; accepts 16-bit PCM WAV or Ogg Opus; max 8 MiB and 120 seconds; must be HTTPS (HTTP allowed for loopback) |
apiKeyEnv |
DEEPSEEK_API_KEY |
Credential name, resolved via the Credentials service with fallback to process environment |
apiKey |
none | Directly specified key; not recommended as it is written to the config file |
requestTimeoutMs |
120000 |
Timeout per request (milliseconds) |
statusPath |
none | Optional diagnostic file path; leave unset to disable |
Use Cases & Notes¶
Suitable for scenarios requiring quick speech-to-text conversion, limited local compute, or reduced inference latency. If offline transcription is needed, you can retain the built-in SenseVoice recognizer. Both can coexist in the same configuration file, with defaultProvider pointing to one or the other.
Notes:
- The plugin runs with the permissions of the current DSH process. Review the source code and license (MIT) before installing.
- DeepSeek ASR is a paid API billed by recording duration. Ensure your account has sufficient balance.
- Recordings are sent to DeepSeek. No offline mode or local fallback is provided.
In Short¶
norwinyu/dsh-deepseek-asr replaces DSH’s voice input recognizer with a cloud-based ASR service, eliminating the need for model downloads and local inference. It’s ideal for latency-sensitive scenarios or environments with limited local compute. The plugin is compatible with DSH’s native UI, and configuration options can be overridden as needed.
- Directory page: https://www.skillhub.cn/plugins/NorwinYu/dsh-deepseek-asr
- GitHub: https://github.com/NorwinYu/dsh-deepseek-asr