rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:1624318455/dsh-plugin-tts
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
api_v2.py /tts · reference-audio cloning · native payload contractA dual-sided (Host + Web UI) DeepSeek Harness plugin that reads assistant replies aloud — Microsoft Edge's free online TTS out of the box, your own RVC voice models for custom voices, local Index-TTS2 reference-audio voices, local CosyVoice zero-shot prompt clones (CosyVoice-2.0-0.5B), local GPT-SoVITS reference-audio clones, or paid Google Cloud TTS voices (Chinese Standard/Wavenet). Long replies stream with gapless adaptive chunked playback; voices install one-click from a voice-pack registry; a portable RVC runtime means no RVC WebUI install is needed.
📖 First time? See the user guide (执行手册) — every step covers "what / how / how to tell it worked": read-aloud, RVC voices and voice-pack downloads.
--dsw-*); the RVC panel opens with a first-time 3-step guide
(per-OS startup commands + one-click diagnostics).approval/asked) is announced aloud and
interrupts the current read (the agent is waiting on the decision); an
approval result (approval/decided) is announced only when idle. Alerts
always use Edge TTS with their own alert voice (independent of the RVC
service), are deduplicated by approval id, and off by default. (Scope note:
task-completion announcements are deferred to a later phase — the jobs
subsystem has no session-event channel this plugin can observe yet.)web profile (dsh web)WebSocket)rvc-server.py — see the
RVC Guide → "启动本地 RVC 服务" and the
User Guide §4.2. macOS users start there too.index-tts2-nvidia bundle's API service
(启动api服务.bat, default port 7880) — see the
Index-TTS2 Guide.cosy-server.py
(启动cosy服务.bat, default port 7890) — see the
CosyVoice Guide.api_v2.py (default port 9880; the
Gradio WebUI is not an HTTP API) — see the
GPT-SoVITS Guide.Four equivalent ways (pick any one):
# dsh-market UI: search the market for the plugin name and install
# npm package:
dsh plugin --profile web add "@memef1f1y/dsh-plugin-tts"
# GitHub source:
dsh plugin --profile web add "github:1624318455/dsh-plugin-tts#main"
# or local development:
dsh plugin --profile web add "file:/path/to/dsh-plugin-tts/plugin"
Restart dsh web; the plugin then loads automatically as a profile bundle.
Uninstalling any one of the above first is required before installing another:
they all register the same loader entry id (tts), and the installer refuses
duplicates (it rolls back instead of overwriting).
| Region | Voices |
|---|---|
| Simplified Chinese | Xiaoxuan 晓萱 · Xiaoyi 晓伊 · Yunxi 云希 · Yunyang 云扬 · Xiaoxiao 晓晓 · Yunjian 云健 · Yunxia 云夏 · liaoning-Xiaobei 晓北 · shaanxi-Xiaoni 晓妮 |
| Taiwan | HsiaoChen 曉臻 · HsiaoYu 曉雨 · YunJhe 雲哲 |
| Hong Kong | HiuGaai 曉佳 · HiuMaan 曉曼 · WanLung 雲龍 |
| English | Aria · Jenny · Guy · Sonia (UK) |
| Other | Nanami 七海 (ja-JP) · SunHi (ko-KR) · Denise (fr-FR) |
Note: legacy voices such as Xiaohan / Xiaomeng / Xiaorui / Xiaoshuang were removed by the Edge endpoint (
1007 Unsupported voice) and are not listed.
| Layer | Location | Role |
|---|---|---|
| Host | lib/index.mjs |
Registers webServer routes: /dsh-tts-api/speak (synthesis / chunk queue, all providers), /dsh-tts-audio/<id> (audio bytes), /dsh-tts-api/rvc-next (next chunk / job cancel), /dsh-tts-api/rvc-files + /rvc-compact-index + /rvc-packs* (RVC service proxy / packs), /dsh-tts-api/index-* and /dsh-tts-api/cosy-* (local service proxy + config), /dsh-tts-api/cloud-* (Cloud key/usage/test), /dsh-tts-api/gsv-* (GPT-SoVITS config/test), /dsh-tts-api/notify (approval-alert queue), /dsh-tts-api/diagnose (one-click diagnostics); runs a zero-dependency Edge worker via node -e |
| Client | lib/client.js |
Web Audio chunk player (sample-accurate joins, <audio> fallback) in shell.overlay + the UI entries (read-aloud button / auto-read toggle / settings panel); talks to the Host through fetch |
The TTS worker mirrors node-edge-tts@1.2.10:
Sec-MS-GEC query params (ticks rounded to the 5-minute boundary),
Sec-MS-GEC-Version=1-143.0.3650.75, Path:audio binary framing, xml:lang
derived from the voice locale, one retry on abnormal (1006) closures. Audio is
audio-24khz-48kbitrate-mono-mp3.
1007 Unsupported voice), the
voice is pruned from the picker and the plugin auto-falls back to the default.Esc / S (outside an input) stops the current read-aloud.approval/asked / approval/decided), dedupes by approval id, and
the client polls /dsh-tts-api/notify?s=N — the first poll baseline-syncs the
cursor so a page refresh never replays stale alerts; announcements are silent
on failure (no error toasts while the agent loops).Layered storage:
~/.dsh/tts-rvc/settings.json,
{ version: 1, rvc: …, index: …, cosy: …, cloud: … }):
service-class config — RVC service URL/model/index paths, Index-TTS2 and
CosyVoice service URLs, Cloud API key (+ optional project ID). Shared across
browsers, survives browser-data clears and incognito. Served/updated through
GET /dsh-tts-api/rvc-config + POST /dsh-tts-api/rvc-config-save
(and the matching index-config, cosy-config, cloud-config routes;
legacy localStorage values migrate up once, then the file wins).dsh-tts-settings): UI prefs only — voice, auto-read
toggle, provider, sound tuning, the raw-Markdown toggle, approval-alert and
remaining RVC prefs. Never stores the service URL / model / index.A "Reset to defaults" button in the settings panel restores defaults and clears both layers (best-effort on the Host file).
Use your locally trained RVC model for voice conversion: switch the TTS
provider to "RVC" in the settings panel. First-time RVC users
need two things: a model file (.pth) and a running local RVC service — see
the RVC Guide or User Guide §4.2 for
macOS/Windows/Linux startup commands. The full story — service startup, panel
config, gapless chunked playback, compact index, voice-pack registry install,
portable runtime, settings reference and troubleshooting — lives in the
RVC Custom Voice Guide.
Public pack registry example: rvc-for-tts (设置 → 语音 → 音色包 → registry URL:
https://raw.githubusercontent.com/1624318455/rvc-for-tts/main).
Sec-MS-GEC rejected: the Edge endpoint protocol or version check
changed; update CHROMIUM_FULL_VERSION / TRUSTED_CLIENT_TOKEN inside the
worker in lib/index.mjs.1007 Unsupported voice: the selected voice was removed from the
endpoint; pick one from the table above.[tts] errors in the dsh web
console).RVC-specific troubleshooting: RVC Guide → Troubleshooting.
Q: Is it big?
Q: Are the dependencies big?
Q: Do I need a local TTS model?
.pth), optionally a .index; the pretrained hubert / rmvpe are already bundled — you only provide your trained model.Q: Is it easy to install?
.command on macOS, .bat on Windows) → drop your .pth into assets/weights → pick it in the plugin panel.Q: Do I need a paid API?
Q: Did this modify the DSH core?
Other common questions
The settings panel has an Interface language selector at the top: Auto (follow browser) / 中文 / English.
dsh-tts-lang), surviving page reloads.Every control is transcribed from the shell's own Button / Input / Menu /
Switch / PermissionPresets / AgentPreset / SettingsGeneral sources rather
than copied from screenshots.
Two picker shapes — and two different shell locations. The same npm package
ships two things called a picker: on a settings row it is PermissionRow's
.oY77xG_selector — 36px tall, --dsw-radius-md, no border but a default
--dsw-alias-bg-module-platform light-grey fill (rgb(245,246,247) in the
light theme), 14px/400 primary ink, padding 0 14px, a 12px label/chevron gap,
interactive-bg-hover on hover; :disabled only changes the cursor and keeps
the fill. The transparent 28px PermissionSelect.trigger / AgentPresetSeat is
the composer's current-session control and has no place in our panel. Only
inside a form field does a picker become a field: the same box as the Input
beside it (32px, --dsw-radius-md, 0.5px border-l4, bg-layer-1), with the
selector's 12px gap reset to 4px. The menu surface is the shell's own material —
--dsw-menu-surface-fill, blur(40px) saturate(150%),
--dsw-elevation-prominent, 12px rows and a trailing check — and on a settings
row it opens with the shell's align:"end", growing left from the trigger's
right edge so long labels never spill out of the dialog. Esc / click-outside /
↑↓ + Enter are supported, with automatic flip-up when space runs out.
Row rhythm follows the settings page: padding:16px 0, a half-pixel
border-l2 rule, gap:24px, 14/20 titles and 12/18 secondary descriptions; a
module that opens a group takes the 16/24/500 section tier. A row immediately
followed by a bordered provider card drops its bottom rule (the two strokes
would land on the same pixel and read as a broken line); two stacked cards keep
both borders and are separated by a 12px gap.
Three button variants only. Button.sm (28px, radius-sm, 0.5px
border-l3, 12/18), icon buttons (28×28, radius-sm, button-primary-fill) and
disabled at opacity .4. Where a row also holds an input, every child adopts the
32px field height so the row keeps a single baseline.
Booleans use a 36 × 20 switch matching Switch.module.css byte for byte,
including box-sizing:border-box and corner-shape:round (which opts the capsule
out of the shell's global superellipse — without it a 999px radius renders as a
squircle) rather than a native checkbox — the OS-drawn square is the one control
that can never blend into the product's language.
Toasts use the shell's dark surface (toast-bg, toast-label,
--dsw-shadow-lv3, radius-lg, padding 12px 16px) with no border; state rides
a leading dot.
Required fields carry a single red * and nothing else is badged — the "mark the
minority" convention from GOV.UK and USWDS. Diagnostics render as a hairline list:
state glyph + name + right-aligned state, with the actionable hint on a second
line; skipped checks stay grey instead of crying red.
The stylesheet is one +-joined literal, so a stray quote silently truncates it
while node --check still passes; tests/client-load.mjs therefore runs the real
injection and asserts on the resulting <style> length and brace balance.
node tests/smoke.mjs # fake-ctx route registration + real Edge TTS synthesis + audio serve assertions
npm run test:all # full: smoke/live/patch/i18n/client/archive/gsv/gsv-e2e/pack/privacy
npm run test:pack # guard on what npm install actually ships to users
npm run test:privacy # guard against local usernames/paths, GUI captures, credentials
Tests only run from the source repo. The published package is trimmed by the
files allowlist in package.json: it contains lib/, rvc-server.py,
cordis.patch.yml and the user-facing docs. Only the seven user-facing guides
under docs/ ship; design notes, UI audit records and acceptance checklists
stay in the source repo, with README links pointing online. GPT-SoVITS talks
straight to the local api_v2.py — no gateway process, no Python adapter,
no API key. tests/, CI config and maintainer-only tools under tools/
are excluded; test:pack enforces that boundary.
Hot-reload after editing lib/ (on Windows a file: install is a COPY, not a
symlink, so the running dsh reads the profile copy):
Copy-Item lib/* $env:USERPROFILE\.dsh\profiles\web\node_modules\@memef1f1y\dsh-plugin-tts\lib\ -Recurse -Force
# then refresh the browser (bundles are re-read from disk per request; never use pnpm install --force)
--dsw-*) must be eyeballed in the real dsh UI with the plugin loaded — this
plugin ships no standalone HTML (its UI is slot-injected by the dsh web host), so
it cannot be headless-screenshotted here (tests/client-load.mjs asserts the
in-memory render only, not real DOM/CSS).MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。