rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ChAr11eG/dsh-realtime-voice
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (DSH) plugin for a realtime voice phone call with an agent persona, 大肥鱼 by default. Click 打电话给大肥鱼 in the DSH sidebar, or ask in chat ("打电话给大肥鱼,聊聊周末去哪玩"), and a call screen opens inside DSH. You talk through the browser microphone; the persona answers in a voice you choose, and you can interrupt it mid-sentence.
The realtime line: Silero VAD with end-of-turn rules (a shorter wait after a question), Qwen3-ASR with a CUDA-graph decoder and live partial transcripts, phrase-by-phrase streaming TTS, and a three-word barge-in rule. Echo cancellation is left to the browser.
Tested with DSH 0.2.2-rc.1 on Linux (Chromium, RTX 4090): about 0.45 s from the end of speech to the final transcript and 0.2–0.3 s from the transcript to the first reply audio with Breeze TTS and a local 9B model.
DSH page (client.js) ──WS /realtime-voice/ws, HTTP /api/realtime-voice/*──▶ host plugin (Node, inside DSH)
│ LLM: DSH's configured models
│ or any OpenAI-compatible API
▼
speech engine (Python, 127.0.0.1)
VAD + ASR + TTS + voice library
▼
Breeze TTS 2 worker (optional, own venv)
realtime_voice_call, so DSH's agent can open a call for you.SPEC.md is the full contract between the three parts.
| Options | |
|---|---|
| Speech recognition | Qwen3-ASR 0.6B (local, CUDA, live partials), OpenAI-compatible /audio/transcriptions (Whisper, Groq, SiliconFlow, …) |
| Language model | DSH's configured models (the same providers as chat; thinking turned off), OpenAI-compatible /chat/completions (DeepSeek API, llama.cpp, …) |
| Speech synthesis | Edge (free online Microsoft voices, no GPU), Breeze TTS 2 (local GPU, clone any voice from a 3–20 s clip or design one from a description), OpenAI-compatible /audio/speech |
Requirements: Node ≥ 24.9, Python 3.10+, ffmpeg. Local ASR and Breeze need an NVIDIA GPU.
Engine environment (creates .venv):
scripts/setup-python.sh
To reuse an environment that already has torch and qwen-asr (no multi-GB download):
BASE_PYTHON=/path/to/env/bin/python scripts/setup-python.sh
Optional, for local voice cloning (downloads about 8 GB into .breeze/):
scripts/setup-breeze.sh
Node dependencies:
npm install
Add the plugin to DSH. Either install it into the web profile (needs pnpm on PATH):
npx @deepseek-ai/dsh plugin --profile web add link:$PWD
or run DSH with this checkout as an overlay, without installing anything:
npx @deepseek-ai/dsh web --patch ./dev.patch.yml
Restart DSH after installing or updating, then reload the page.
Qwen/Qwen3-ASR-0.6B on first use, or point it at a local
copy. Choose OpenAI-compatible instead if there is no GPU.setup-breeze.sh, add a voice in 音色库 (upload a clip, or describe a voice), and select it.Settings are saved when a field loses focus. API keys are stored in
~/.dsh/realtime-voice/secrets.json (mode 0600) and are never sent back to the page.
Call transcripts are kept in ~/.dsh/realtime-voice/calls/ and listed under 通话记录.
http://127.0.0.1 / localhost works; another
device needs DSH started with TLS.DSH_HOME=/tmp/dsh-dev npx @deepseek-ai/dsh web --patch ./dev.patch.yml --no-open --port 3099
Open the printed ?token= URL once. Host-side changes need a DSH restart; client changes
need a page reload as well. The engine log is at ~/.dsh/realtime-voice/engine.log and the
last lines are shown under 引擎 → 引擎日志.
MIT for this repository. Model weights and third-party packages keep their own licenses.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。