dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:QiNFPV/dsh-voice-dialog
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A continuous voice conversation plugin for DeepSeek Harness: click the microphone once, then just talk. Your speech is segmented automatically, sent after a short confirmation window, and the assistant's reply is spoken back. Start talking while it is speaking and it stops to listen.
Click the mic → speak → a pause ends the sentence → auto-send after 2 seconds → reply is spoken → speak again to interrupt.
faster-whisper and the local model for new
versions and lets you update them from the settings pagespeech.platform.bing.com must be reachablefaster-whisper) for better recognition accuracydsh-voice-dialog-0.1.4.tgz from
Releases./tmp or %TEMP%), then install it with the DSH plugin
manager (Settings → Plugins → Install from file).dsh-voice-dialog is listed in the profile's bundle list and fully restart DSH.Command line equivalent:
dsh plugin --profile desktop add /path/to/dsh-voice-dialog-0.1.4.tgz
Then add dsh-voice-dialog to dsh.profile.bundles in the profile and restart DSH.
Unpack the tgz into ~/.dsh/profiles/<profile>/node_modules/dsh-voice-dialog/ and restart DSH.
Do not copy node_modules from another machine; install dependencies with npm install --omit=dev
inside the plugin directory if needed (ws is the only runtime dependency).
Bilingual install notes are included in the package: 安装说明.txt (Chinese) and
install-notes.en.txt (English).
The language dropdown next to the microphone only selects the voice used for speaking. Recognition always detects the language automatically.
Settings → Plugins → Voice Dialog
The plugin can watch the local Whisper stack and tell you when something new is available. It is enabled by default and never blocks voice input.
Settings:
| Item | Default | Meaning |
|---|---|---|
| Auto-check local Whisper updates | On | Turn the periodic check on/off |
| Check interval | 24 hours | 6 / 12 / 24 / 72 hours |
| Check now | — | Runs a check immediately and refreshes the status |
The status block shows the last check time, the installed and latest faster-whisper versions,
the local and remote model revisions, the model size, and whether an update exists. When an update
is found, a small badge appears next to the microphone button; click it to inspect details and run
the update (a second confirmation is required).
What is checked:
faster-whisper package — latest version from
https://pypi.org/pypi/faster-whisper/json compared with the version actually installed in the
bridge virtualenv. The installed version is read by running the venv Python
(import faster_whisper; print(faster_whisper.__version__)); if that fails, the plugin falls
back to site-packages/faster_whisper/__init__.py or the *.dist-info directory name, and
finally reports "unknown".sha from
https://huggingface.co/api/models/<repo> compared with the local refs/main under the
HuggingFace hub cache. The cache root honours HF_HOME, HF_HUB_CACHE,
HUGGINGFACE_HUB_CACHE and defaults to ~/.cache/huggingface/hub. The repository defaults to
mobiuslabsgmbh/faster-whisper-large-v3-turbo and can be overridden with ASR_MODEL_REPO; the
mapping also follows ASR_MODEL (large-v3-turbo, large-v3, small, …).All network calls time out within 8 seconds. Offline or failing checks are silent and only update
the status text; the voice pipeline is unaffected. The first automatic check runs about 40 seconds
after the host starts, then at the configured interval. Results are persisted in
~/.dsh/voice-tutor-config.json under whisperUpdate.
Updates only run after you click the button and confirm the dialog.
faster-whisper: runs <venv python> -m pip install -U faster-whisper, restarts the local
ASR bridge, and waits for /health to become ready. If the new version cannot start, the plugin
tries to reinstall the previous version and restart again.huggingface_hub.snapshot_download, shows progress, then restarts the bridge. Old
cache snapshots are never deleted; if the new model cannot start, refs/main is pointed back to
the previous revision and the bridge is restarted again.The bridge restart only targets the process actually listening on 127.0.0.1:8789; the plugin
verifies that its command line contains server.py before killing anything. The new process is
started with the same command (<venv python> <asr-bridge>/server.py). The model is loaded lazily
by the bridge, so the plugin sends a short silent warm-up request to make /health report ready.
Relevant environment variables: VOICE_TUTOR_PY, VOICE_TUTOR_ASR_SERVER, VOICE_TUTOR_ASR,
ASR_MODEL, ASR_MODEL_REPO, HF_HOME, HF_HUB_CACHE, HUGGINGFACE_HUB_CACHE.
In a voice conversation session — the recording session entered with the microphone button, or a dedicated voice-call session — the assistant's replies are read aloud. To keep spoken turns listenable, replies in that session are deliberately compressed into one or two very short sentences; they do not contain bullet lists and do not repeat what has already been said.
This is session-level behaviour, not a plugin bug. If you are discussing something by typing (in the same session as a voice call, or while a voice session is active), this short-reply mode is not a good fit: start a new ordinary chat session, or turn voice mode off in the plugin before you continue the discussion.
| Symptom | What to do |
|---|---|
| Clicking the mic does nothing | Check microphone permission; the button shows the reason |
| Empty transcription | Speak louder / a bit longer; check stt-ok text= in the log |
| No spoken reply | The message was typed (by design), voice mode is off, or TTS failed |
| Duplicate messages | Do not run voice mode in two DSH windows at the same time |
| "Whisper update" status says unknown | The venv path or the model cache is not where the plugin expects; set the env vars above |
Update fails after installing faster-whisper |
The bridge may not start; the log contains the pip/restart error and any rollback result |
Logs: ~/.dsh/voice-tutor.log (rotated to .log.1 at 2 MB). The last input mode is recorded in
~/.dsh/voice-tutor-last-input.json. Detailed notes are in
docs/detailed-guide.en.md.
faster-whisper version and
the local/remote model revision. When an update exists, a small badge appears next to the
microphone; updates require a second confirmation and restart the ASR bridge safely.
New host routes: GET /voice-tutor/whisper-update, POST /voice-tutor/whisper-update/check,
POST /voice-tutor/whisper-update/apply.dsh.client.inject is empty, and paths / ffmpeg candidates are cross-platform. This release does
not regress any of them.README.md, Chinese README.zh-CN.md, plus English and
Chinese detailed guides and install notes).Startup fix. 0.1.0 could not start on any platform: the whole web front-end failed to boot
(web boot: 1 entry did not activate), often together with duplicate factory registration.
Three packaging/boot problems were fixed:
client.js): 0.1.0 registered
@local/dsh-voice-chat while the loader looked up dsh-voice-dialog, producing
loaded without registering. 0.1.1 registers dsh-voice-dialog, matching the package name and
cordis.patch.yml.package.json → dsh.client.inject):
@deepseek-ai/dsh-client-runtime does not exist in DSH 0.2.x, so the client entry import failed.
The client only needs the loader's built-in react; inject is now [].index.js): logs, last-input and config paths were
written as C:\Users\<user>\.dsh\..., which produced malformed filenames and unreadable settings
on macOS/Linux. 0.1.1 uses os.homedir() + path.join() (DSH_HOME, VOICE_TUTOR_LOG,
VOICE_TUTOR_INPUT, VOICE_TUTOR_CONFIG can override), and selects ffmpeg candidates per
platform (%USERPROFILE%\tools\ffmpeg\bin\ffmpeg.exe and PATH on Windows; Homebrew /
/usr/local/bin / /usr/bin / PATH elsewhere).Also: speech output switched from msedge-tts to a direct Edge TTS WebSocket implementation using
ws (pure JS, no install script), with identical behaviour.
First public release: continuous voice conversation, automatic segmentation, 2-second confirmation window, external APIs, Edge TTS output and barge-in.
react; dsh.client.inject is [].ws (pure JS, no install script).ffmpeg is only a fallback for non-WAV audio and is optional; override it with
VOICE_TUTOR_FFMPEG.~/.dsh/; delete voice-tutor-config.json there to reset settings.The local Whisper update checker assumes the bridge layout described above
(~/tools/fw/.venv + ~/tools/asr-bridge/server.py). Different layouts work by setting
VOICE_TUTOR_PY and VOICE_TUTOR_ASR_SERVER.
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。