dsh-voice-input-en
开发工具 活跃维护

dsh-voice-input-en

mohith-das/dsh-voice-input-en

浏览器原生SpeechRecognition接口实现的轻量化纯英文语音输入插件,可在输入框区域添加麦克风按钮,零依赖无额外子进程,交互轻快无需额外配置,开箱即用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
7 KB
仓库大小
23 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:mohith-das/dsh-voice-input-en
git clone https://github.com/mohith-das/dsh-voice-input-en.git
git clone git@github.com:mohith-das/dsh-voice-input-en.git
README.md main

dsh-voice-input-en

npm version

Minimal, English-only voice input for the DeepSeek Harness Web UI.

Adds a mic button to the composer's tool row. Click it, speak, and the
transcript streams into your message draft live via the browser's native
SpeechRecognition API (Chrome / Edge). Click again (or the "Done" button)
to stop.

Written from scratch, not derived from any third-party plugin, specifically
to stay small enough to read end to end in one sitting:

  • client.js — the entire UI and speech-recognition logic (~230 lines,
    zero dependencies beyond react, which the host already provides).
  • lib/index.js — a no-op host-side stub required only so the loader mounts
    the client bundle.

No language picker, no localStorage, no auto-send, no text-to-speech, no
subprocess execution, no network calls beyond whatever the browser's own
speech backend makes on its own. Recognition language follows the browser's
locale (navigator.language).

Install

Add it to your DSH web profile's dependencies:

dsh plugin --profile web add -w dsh-voice-input-en

Then insert it as a Loader entry via cordis.patch.yml (installing the
dependency alone isn't enough — the loader only picks up packages that
appear as a Loader entry):

# ~/.dsh/profiles/web/cordis.patch.yml
- insert:
    - id: dsh-voice-input-en
      name: 'dsh-voice-input-en'

Restart dsh web and refresh the page. For local development instead of the
published npm package, point the dependency at a local path with
"dsh-voice-input-en": "file:/absolute/path/to/dsh-voice-input-en".

Compatibility

  • Requires Chrome, Edge, or another browser that implements
    webkitSpeechRecognition. Firefox does not support the Web Speech API.
  • Must be served from localhost / 127.0.0.1 or HTTPS (browser security
    requirement).
  • Speech recognition requires network access — the browser calls its own
    underlying speech service to do the recognition.

License

MIT