- 홈
- 플러그인
- 비전, 음성 및 멀티모달
- dsh-voice-input-ru
dsh-voice-input-ru
vtoropov1337/dsh-voice-input-ru
Microphone button in the DeepSeek Harness composer that dictates speech through the browser's Web Speech API into the message draft, Russian by default and switchable at runtime.
설치
dsh plugin --profile web add github:vtoropov1337/dsh-voice-input-ruREADME
dsh-voice-input-ru
A microphone button for the DeepSeek Harness
(dsh) Web UI composer. Speech is recognized by the browser's standard
Web Speech API (SpeechRecognition / webkitSpeechRecognition) and the
final transcript is appended to the message draft. The recognition language
defaults to Russian (ru-RU) and can be switched at runtime without a rebuild.

What it does
- Adds one button to the composer seat
conversation.input.right— next to the input, before the send button. The shipped UI is not replaced; the button is an additive entry in that seat. - One press starts a single-utterance recognition session; pressing again ends it early. When you stop speaking the browser finishes the session itself.
- The final transcript is appended to the draft (with a separating space when the field already has text). Sending stays manual — the plugin never submits a message.
- The button has clear states: idle, listening (pulsing), error (microphone permission, no microphone, network) and unsupported (no Web Speech API in this browser — the button renders disabled with an explanatory tooltip).
- Styling uses only the host's semantic tokens (
--dsw-alias-*), so it follows light and dark themes; the stylesheet is scoped to[data-plugin="dsh-voice-input-ru"]and removed when the plugin stops. - Accessibility:
aria-label,aria-pressed, visible focus ring, reduced motion.
Requirements
dsh0.2.1 or newer with the Web client bundle (developed against0.1.2-rc.1, verified on0.2.1-rc.2). The slot name and theslots.register({ name, id, order }, component)API are checked there.- A browser that implements the Web Speech API: Chrome or Edge.
Safari and Firefox do not ship
SpeechRecognition, and the button stays disabled there. - Network access: Chromium sends the audio to its own speech service for recognition. Recognition is not local — nothing is uploaded by this plugin itself, but the browser vendor's service receives the audio.
Install
dsh plugin --profile web add dsh-voice-input-ru
Or from the repository source:
dsh plugin --profile web add https://github.com/VToropov1337/dsh-voice-input-ru
Restart the web interface afterwards — client bundles are scanned when the host starts. Then a microphone button appears next to the composer.
Change the recognition language
Russian is the default. Any other BCP-47 tag is applied without rebuilding —
set the localStorage entry and start dictating:
localStorage.setItem('dsh-voice-input-ru:language', 'en-US')
The value is validated (BCP-47 shape) and re-read on every start, so the next
dictation uses the new language. A tag the browser cannot recognize produces a
language-not-supported error on the button. To go back to the default:
localStorage.removeItem('dsh-voice-input-ru:language')
Structure
| File | Purpose |
|---|---|
src/host/index.ts | Host half: an empty apply, so the package exists as a loader row |
src/client/index.ts | Browser half: slot registration and stylesheet injection |
src/client/MicSeat.tsx | The button component and the recognition state machine |
src/client/speech.ts | Structural typings for the Web Speech API and constructor lookup |
src/client/styles.ts | CSS (host tokens) plus injection/removal of the <style> element |
cordis.patch.yml | Loader row for this package (dsh.bundle.patch) |
tsdown.config.ts | Build: host ESM + client CJS bundle for the __ModuleLoader__ handoff |
The client bundle requires only react and react/jsx-runtime from the
platform's frozen browser module table and injects the slots service.
Development
npm install --no-audit --no-fund --cache .npm-cache
npm run typecheck # tsc --noEmit
npm run build # tsdown -> lib/index.js + lib/client.js
scripts/register.sh # build + register in the local `web` profile
License
MIT — see LICENSE.