dsh-voice-polish
Manifest validComposer mic button that transcribes speech locally with SenseVoice, then tidies the spoken transcript into clean text with your configured DeepSeek route before inserting it into the draft.
dsh-voice-polish · Voice Input with Polish
Talk to your computer like you would send a voice message: transcription runs on your local CPU (SenseVoice), then DeepSeek tidies your loose spoken words into a clean, ready-to-send paragraph and inserts it into the composer draft. The experience matches Feishu/Lark's "smart" voice input.
English | 中文
Why not just the official voice input?
DSH's built-in experimental voice bundle stops at "transcribe → insert raw text". Whatever mess you spoke is what lands in your draft: fillers, repeats, half sentences, homophone typos and all.
This plugin adds the missing layer: after transcription, before insertion, a model tidies what you said.
🎤 speak → local SenseVoice transcript → DeepSeek tidy-up → review panel → draft
Real example (spoken transcript → tidied):
Raw: I want to ask you, so like, is there that voice input feature now? Like I just talk to the computer and then it, um, tidies it into text for me. Ideally like that tidies up my, uh, colloquial expressions before sending. That's it, thanks.
Tidied: I want to ask: is there a voice input feature now? I'd talk to the computer and it would tidy my speech into text — ideally tidying up colloquial phrasing before sending. Thanks.
No expansion, no summarizing, no added content — just tidy. Homophone typos from the recognizer get fixed on the way.
Interface
Before (native composer toolbar):

After (the Voice button appears):

Recording in progress (live level + timer; "Stop & tidy" transcribes and tidies):

Features
- Microphone button in the composer toolbar — click to start, "Stop & tidy" to finish; live level bar + timer; Esc or Cancel discards
- Local recognition — SenseVoiceSmall (ONNX, CPU), auto / zh / en / yue / ja / ko; one-time model download (int8 ≈ 239 MB) with automatic HuggingFace / HF-Mirror fallback, fully offline afterwards
- Review panel — the tidied text is editable; toggle raw transcript, re-tidy, or insert raw — a failed tidy never loses your words
- Three tidy-up styles —
light(fillers + punctuation only),standard(Feishu-like, default),strict(further written-form normalization) - Zero extra setup — tidying reuses the DeepSeek route already configured in your profile; no new API keys
- Light/dark theme safe (all host theme tokens)
Privacy
- Audio is transcribed inside your machine's process and never leaves it
- Only the text transcript is sent to your configured model for tidying (usually a few hundred tokens)
- Nothing is persisted; results become a session message only when you press send
Install & first run
- Install this plugin (pick one):
- DSH plugin market (dshmarket / Discover tab): search
dsh-voice-polishand one-click install - CLI · prebuilt Release tarball (no build-script approval, recommended):
dsh plugin --profile <profile> add https://github.com/howie79794-sys/dsh-voice-polish/releases/download/v1.0.0/dsh-voice-polish-1.0.0.tgz - CLI · GitHub source:
dsh plugin --profile <profile> add github:howie79794-sys/dsh-voice-polish
- DSH plugin market (dshmarket / Discover tab): search
- Refresh the page — a "🎤 Voice" button appears in the composer toolbar
- First click walks you through the one-time local model download; allow microphone access in the browser and the OS
- Speak
Configuration
Edit the voice-polish row's config in your profile patch (toggle the plugin once to apply):
| Field | Default | Notes |
|---|---|---|
language | auto | Recognition hint: auto / zh / en / yue / ja / ko |
style | standard | Tidy-up level: light / standard / strict |
polishProvider | deepseek-official | Model route for tidying; falls back to a configured DeepSeek route automatically |
polishModel | deepseek-chat | Model for tidying |
maxDurationSeconds | 180 | Per-recording limit |
enabled | true | Master switch |
Compatibility
- Requires DSH 0.2.2-rc.1+ (which ships the local recognition base).
- Do not enable the official "Voice Input" bundle at the same time — both register the same local recognizer. Disable one first if you want to switch.
- Browser microphone capture requires HTTPS or a loopback address (DSH Desktop / local
dsh websatisfy this).
How it works (for developers)
- Host half: loopback route
/api/voice-polish(status/prepare/dictate/polish); transcription viactx.speechToText, tidying viactx.llm.prepareCall().stream() - Client half: registers into the
conversation.input.activityslot;MediaRecordercapture → Web Audio resample to 16 kHz mono PCM16 WAV → base64 upload - Recording pipeline adapted from
@deepseek-ai/dsh-experimental-client-ui-voice-input(MIT, DeepSeek)
License
MIT — see LICENSE.
Comments
Loading…
Similar plugins
by Zhangbo-cn
Composer mic for DeepSeek Harness Web: tap-to-monitor live transcription and hold-to-talk, with host Edge TTS reply reading that streams while the model generates, echo-pause during reading, and tap-t
★ 6
↓ 188/wk
MIT
TypeScript
Aug 25, 2026
dsh plugin --profile web add @zhangbo-cn/dsh-client-ui-voice-inputby moazzamak
Offline local speech-to-text for the DeepSeek Harness composer: a microphone button that records, transcribes with faster-whisper on your own machine, and inserts the text into the chat draft.
★ 0
MIT
JavaScript
Oct 6, 2026
dsh plugin --profile web add dsh-voice-inputby CharlesLiuZC
Voice-to-text plugin for DeepSeek Harness (desktop & web): composer mic button with cloud (SiliconFlow) or local offline (FunASR / faster-whisper) transcription.
★ 0
TypeScript
Oct 2, 2026
dsh plugin --profile web add dsh-voice-contextby bigfurma-bot
Push-to-talk voice dictation for DeepSeek Harness: mic button in the composer transcribes via local Parakeet STT into your message draft
★ 0
MIT
JavaScript
Aug 22, 2026
dsh plugin --profile web add @deepseek-ai/dsh-voice-dictationby QDchuan
Voice input for DeepSeek Harness: a microphone seat in the composer and a Web settings page that transcribes through the browser or any OpenAI-compatible /audio/transcriptions endpoint, with a fully o
★ 0
MIT
JavaScript
Sep 12, 2026
dsh plugin --profile web add dsh-voice-inputMic button in the composer tool row: Web Speech API speech-to-text (Chrome/Edge), language switching, and optional auto-send, zero dependencies.
★ 0
dsh plugin --profile web add dsh-voice-input-web