rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ggfgfgf-on/dsh-voice-dialog
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Continuous voice conversation for DeepSeek Harness: one microphone in the composer, read-aloud while voice input is active, model-controlled voice intents, and soft interruptions that are handed to the running model instead of hard-cancelling it.
session.prompt(..., "queue") by default, so it waits for the current reply; a setting switches it to steer for immediate barge-in. Other speakers are queued by default. Up to three utterances are transcribed in parallel; recognition is parallel, while delivery is one strict FIFO queue in speaking order. The microphone opening threshold is adjustable, so quiet speech can trigger sooner while a noisy room can be made less sensitive.llm/stream, segments assistant text into sentences, synthesizes Edge TTS audio, and streams it over SSE. A long first sentence starts at its first natural comma once it has enough words, so the first audio does not wait for the final full stop. Playback is gated by the microphone: starting the mic enables it, stopping the mic stops accepting new sentences but drains the audio already queued. If Edge is unreachable, sentences use the platform speech voice instead of disappearing.session.prompt(..., "queue") by default, so the reply you are listening to is not cut off; the setting can switch it to steer. Guest speech enters the same FIFO queue in speaking order, so a nearby interjection does not derail the current answer; guests can also be made to steer immediately or be ignored.steer; queue keeps the existing policy; ignore drops only that entry. Stale plans, timeouts, malformed output, or a missing model target fall back to queue. An explicit “打断” cancels any organizer request and remains authoritative. Organizer calls use the voice-organizer purpose, so they are never spoken.GenerateOptions.purpose. Reasoning is scanned only for explicit [[voice: ...]] directives; its text is never spoken wholesale. Tool arguments never reach TTS.[[voice: 要说的内容]], [[voice: volume +0.15]], [[voice: rate +10]], [[voice: repeat]], [[voice: stop]]. A say marker adds a spoken prefix rather than replacing the visible answer. The same rate control is exposed to the model through the voice_dialog tool, so “说慢一点/说快一点/语速调到…” adjusts following sentences immediately.voice_dialog tool lets the model react to spoken meta-commands: 轻一点/响一点 (volume), 听不清/什么/重复一遍 (repeat), 别说了/闭嘴/停 (stop). The host broadcasts the action to the browser over the same SSE stream. stop also mutes new sentences until the user speaks again. The same actions and exact speech are available as reasoning markers, so the model can decide naturally without a tool call.sherpa-onnx-node, no cloud call) identifies the enrolled owner and clusters other voices. Each transcript is prefixed with [声纹:我] or [声纹:客人1], so the model can tell who is speaking. The owner is high priority; guests are low priority. The settings page can enroll the owner plus other regular speakers under persistent names, so their names replace “客人1” in transcripts. Confirmed owner utterances slowly reinforce the template, and the optional 只回应我的声音 switch drops utterances that do not match. The model can also decide per speaker: voice_dialog action speaker with speaker: "客人1" and policy: "ignore" drops that guest's future lines, "queue" restores queuing, and speaker: "*" applies to all guests. A name renames the voiceprint (for example "老婆"), after which both the canonical label and the new name work for policies and transcripts. The owner 我 cannot be renamed or ignored. When two people talk over each other, an optional local MossFormer2 ONNX model splits the single microphone segment into two streams before recognition; each stream gets its own voiceprint label and queue position. The splitter handles two simultaneous speakers well and falls back to the untouched audio when only one person is talking. Three or more overlapping voices can still be merged.0.2.1-rc.2 or a compatible build.speech-to-text, speech-to-text-sensevoice, api-speech-to-text.HTTPS_PROXY / HTTP_PROXY and tunnels the WebSocket with CONNECT; DSH_VOICE_TTS_PROXY overrides it and NO_PROXY can exempt Edge.https:// or http://localhost / http://127.0.0.1.sherpa-onnx-node (installed as an optional dependency; it resolves a prebuilt native addon for this platform) and a one-time ~27 MB CAM++ model download. Without them, voice input still works, just without speaker labels.onnxruntime-node plus a one-time ~234 MB MossFormer2 model download (an ONNX export of Alibaba's MossFormer2_SS_16K, Apache-2.0). DirectML is tried first (about 0.4 s per 4 s window on a supported GPU); CPU is the fallback. Without it, ordinary dictation is unchanged.From GitHub (the built lib/ is committed):
dsh plugin --profile web add github:ggfgfgf-on/dsh-voice-dialog
Or from a local checkout:
dsh plugin --profile web add file:D:/path/to/dsh-voice-dialog
Then make sure the bundle is listed in the profile manifest:
"dsh": { "profile": { "bundles": [ "...", "dsh-voice-dialog" ] } }
This plugin owns the same three speech host rows as
@deepseek-ai/dsh-experimental-voice-input-bundle. Do not enable both in one
profile; they would register the same services twice. Remove the built-in bundle
from dsh.profile.bundles (or disable it in the Plugins page) before enabling
dsh-voice-dialog. The microphone UI is replaced by this plugin, so nothing is lost.
voice_dialog.If the speech model is not prepared, the microphone opens this plugin page so you can download/prepare it. The page also shows the live provider state and download progress.
All preferences are in Plugins → dsh-voice-dialog:
| Setting | Storage | Notes |
|---|---|---|
| Auto-read, volume, duck level, input device | Browser localStorage |
Per browser/device |
| Edge TTS voice, speech rate | Host ~/.dsh/voice-dialog/settings.json |
Applies immediately; survives restart |
| ASR provider, language | DSH speech selection | Shared with other speech clients |
| Model preparation | DSH speech host | Download / cancel / retry |
| Speech rate | Host ~/.dsh/voice-dialog/settings.json |
-50%..+50%; the model can change it too |
| Speaker prefix, only-my-voice, threshold | Browser localStorage |
Prefix / gate behavior |
| Owner delivery, guest interjection policy, parallel organizer, parallel ASR | Browser localStorage |
Owner queues by default (or steers); guests queue (default), steer, or ignore; up to 3 ASR lanes, strict FIFO delivery; the organizer can override only the current entry's mode |
| Owner + named guest voiceprints | Host ~/.dsh/voice-dialog/voiceprint.json |
Embeddings only; original audio is not stored; up to 12 named guests |
| Voiceprint model | Host ~/.dsh/voice-dialog/models/ |
Downloaded from the settings page |
| Simultaneous-speech separation | Browser localStorage + host model |
Optional; splits two overlapping speakers into two labelled recognition lanes, each with its own 1.6 s endpoint |
| Separation model | Host ~/.dsh/voice-dialog/models/mossformer2_ss_16k.onnx |
~234 MB; downloaded from the settings page |
The voice selector includes Mandarin, Cantonese, Taiwanese, English and Japanese Edge voices. Audition synthesizes a short sample through the host without touching the live reply queue; if Edge is unavailable it reads the sample with the system voice and shows a notice.
llm/stream ──filter(purpose, text-delta)──► SentenceSegmenter ──► TtsQueue(Edge) ──► SSE
▲
subagent/end ──parent voice-state──► summary ───────────────────────────────────────┘
│
composer microphone ──► MicrophoneLoop(VAD) ──► [optional 2-way separation] ──► parallel ASR ──► global FIFO queue ──► prompt(queue)
└──► interrupt/ignore controls
│
SSE ──► TtsPlayer(Web Audio gain) ◄── duck on speech start ────────────────────────┘
steer and fade the current sentence; an explicit “打断” command still cancels the organizer, stops playback and clears the unsent queue.src/speech-remote.js, so the client does not need the built-in voice-input UI module to mount it.127.0.0.1; the host stores only the 192-dimensional embedding (no audio) and never sends it to a cloud service. Separated streams exist only in memory for the current request. Other speakers are clustered in memory for the current session and are not persisted.localStorage; the voice id is stored under ~/.dsh/voice-dialog/settings.json. No API keys are used.edge://flags/#unsafely-treat-insecure-origin-as-secure.read ECONNRESET in the log: direct egress to speech.platform.bing.com is usually being reset. Set HTTPS_PROXY and restart DSH; the host log then prints Edge TTS via proxy http://….dsh-voice-dialog.pnpm add sherpa-onnx-node in the profile and restart DSH.npm install
npm run build
npm test
npm run build creates the host ESM bundle, the client __ModuleLoader__ closure, and plain-node test surfaces. npm test covers strict FIFO delivery, queue-aware voice commands, sentence segmentation, Markdown filtering, the no-CoT filter, WAV encoding, voice switching, the voiceprint WAV decoder/cosine helper, the separation window/overlap logic, and continuous per-source 1.6 s endpointing with onset-order FIFO, all with injected runners. The native voiceprint and separation models are exercised separately in development; they are not downloaded by npm test.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。