rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zmq6931/dsh-voice-ptt
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Push-to-talk voice input for DeepSeek Harness (DSH): hold Right Ctrl, speak, and the transcript appears in the composer while you talk — then the final result replaces the interim text when you release the key.
📦 Published on npm:
dsh-voice-ptt· GitHub: zmq6931/dsh-voice-pttInstall:
dsh plugin --profile desktop add dsh-voice-ptt
Ctrl+C, Ctrl+V, …), so shortcuts keep working./audio/transcriptions endpoint (SiliconFlow, Alibaba, Groq, self-hosted, …) with automatic fallback to the local provider.On Windows the right Alt key is commonly captured by other desktop assistants (for example the Kimi client) for their own voice input. This plugin defaults to Right Ctrl and leaves right Alt alone, so both tools can coexist. The key is configurable if you prefer another one.
0.2.2-rc.1, desktop app; the web GUI should work the same way).$DSH_HOME/speech-to-text/sensevoice.ctx.speechToText service. It does not bundle or download an ASR model of its own.If the Voice Input bundle is missing/disabled, the plugin's host half stays pending and the hotkey shows an error status instead of recording.
# from npm (recommended)
dsh plugin --profile desktop add dsh-voice-ptt
# web profile
dsh plugin --profile web add dsh-voice-ptt
Alternative sources:
# straight from GitHub
dsh plugin --profile desktop add github:zmq6931/dsh-voice-ptt
# manual, from a local checkout
dsh plugin --profile desktop add link:/absolute/path/to/dsh-voice-ptt
The DSH Plugins panel accepts the same specs. Restart DSH (or refresh the GUI page) after installing; the 🎤 button and the hotkey appear once the plugin is loaded.
| Gesture | Effect |
|---|---|
| Hold Right Ctrl (≥ 0.2 s) | Start dictation; text streams into the composer draft |
| Release Right Ctrl | Final transcription replaces the interim draft |
| Right Ctrl + another key within 220 ms | Treated as a normal modifier combo, no recording |
| 🎤 button in the composer | Click to start / stop dictation |
| Switch to another window while recording | Recording ends automatically |
A small status pill appears in the bottom-right corner: 🎙 聆听中…, ⏳ 识别中…, ✓ 已写入, or an error message.
Long dictation is committed in segments every ~15 s so per-chunk inference latency stays flat.
Settings live in $DSH_HOME/voice-ptt.json (UTF-8 without BOM). The browser half reads it at plugin mount, so refresh/restart after editing.
{
"language": "auto",
"hotkey": "ControlRight"
}
| Key | Values | Default | Meaning |
|---|---|---|---|
language |
auto / zh / yue / en / ja / ko |
auto |
Recognition language hint. yue = Cantonese. |
hotkey |
any KeyboardEvent.code in the small built-in list below |
ControlRight |
Push-to-talk key. |
asr |
local / cloud |
local |
Recognition backend. |
fallbackLocal |
true / false |
true |
Fall back to the local provider when cloud ASR fails. |
Built-in hotkey codes: ControlRight, ControlLeft, AltRight, AltLeft, ShiftRight, MetaRight.
Per-origin overrides (take precedence over the file, and apply immediately):
localStorage["dsh-voice-ptt:language"] = "yue";
localStorage["dsh-voice-ptt:hotkey"] = "AltRight";
{
"asr": "cloud",
"language": "auto",
"fallbackLocal": true,
"cloud": {
"baseUrl": "https://api.siliconflow.cn/v1",
"apiKey": "sk-...",
"model": "FunAudioLLM/SenseVoiceSmall",
"language": "auto",
"timeoutMs": 60000
}
}
baseUrl is an OpenAI-compatible endpoint root; the plugin calls POST {baseUrl}/audio/transcriptions (multipart: file, model, language).fallbackLocal: true keeps dictation working when the cloud request fails./voice-ptt/config returns a redacted view (hasKey only).This is chunked re-transcription, not true per-character streaming: the in-progress draft is re-recognized roughly every 0.7 s, and the text you get on release is a full re-recognition of the utterance (usually the most accurate). Expect ~0.5–1.5 s of lag during speech and the usual small-model mistakes (homophones, proper nouns, noisy rooms).
Ways to improve: closer/quieter microphone, speak in complete short sentences, set language explicitly (yue for Cantonese beats auto for dedicated Cantonese use), or switch to cloud ASR.
ctx.speechToText service from the official Voice Input bundle; a future DSH release may change that API and break this plugin.node test/smoke.mjs # offline: browser recording pipeline + host routes + cloud mode
node test/e2e-live.mjs <mono-pcm16.wav> # live: POST a WAV to the running plugin's transcribe route
test/smoke.mjs runs the browser half in a vm sandbox with fake DOM/media/AudioContext and exercises the host half's routing, trust fence, payload validation, and cloud fallback.
MIT. See LICENSE.
Not affiliated with DeepSeek. Plugin conventions were informed by the MIT-licensed dsh-voice-scribe and dsh-voice-mode plugins, and the host bridge targets the official @deepseek-ai/dsh-experimental-speech-to-text service.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。