Voice I/O for DeepSeek Harness — speech-to-text and text-to-speech over the microphone and audio output.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-talk
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:PerryLink/dsh-talk
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
dsh-talk
Current version 0.3.32.
Press the mic and speak; the reply is spoken back — and the moment you start talking, playback stops.
The voice-first session loop for DeepSeek Harness: speech becomes composer text, the, speak tool reads replies aloud, turn completion / pending approvals / errors are announced, and every engine can stay on your own machine.
Last verified on DeepSeek Harness dsh-v0.2.3-alpha.1 (2026-11-22).
Install · Configuration · FAQ · 简体中文 · English · Español · Português · हिन्दी
dsh plugin --profile <name> add dsh-talk
Community plugin, not affiliated with DeepSeek. Canonical repository: https://github.com/PerryLink/dsh-talk (Gitee is a mirror).
What it is
, dsh-talk adds both halves of voice to DeepSeek Harness. On the input side, the mic button next to the composer records, and the browser's Web Speech, a FunASR HTTP server, or a local whisper.cpp turns the audio into text that fills the draft or submits it. On the output side, the agent calls the speak tool and the browser voice, edge-tts, or piper turns the text into sound. Turn completion, pending approvals, and errors can be announced automatically, and the moment you start talking the current playback stops — no cloud account is required and local engines can run fully offline.
Structure: one browser / host seam and two opposite channels — speech in crosses talk/transcribe into the host engine ladder (FunASR → whisper.cpp → browser Web Speech) and the transcript returns as a draft; the agent turn hinge hands it to speak() and the three announcement events; speech out runs the TTS ladder (piper → edge-tts → browser voice) into the audio cache and the bounded export directory, then back to playback through talk/audio; the interrupt rail closes the loop on the left and the settings write-back runs underneath.
Three-step setup
Install (pick one channel):
# git channel (latest main; equivalent to git+https://github.com/PerryLink/dsh-talk.git) dsh plugin --profile web add github:PerryLink/dsh-talk # npm channel (published releases) dsh plugin --profile web add dsh-talk # tarball channel: pnpm pack in this repo, then dsh plugin --profile web add ./dsh-talk-<version>.tgzThe git channel's
preparescript builds with production dependencies only, so no extra toolchain is needed.Minimal configuration (the defaults already work):
Out of the box the browser engines do the job: the mic button transcribes with Web Speech and
speakplays through SpeechSynthesis. To use local engines, add the model paths in this shape:- insert: - id: talk name: dsh-talk config: stt: engine: whisper whisper: modelPath: ~/models/whisper/ggml-small.bin tts: engine: piper piper: modelPath: ~/models/piper/zh_CN-huayan-medium.onnxVerify it is live:
dsh --profile web --dump-config | grep -A2 'id: talk'Then press the microphone next to the composer and talk; or ask the agent to read its reply:
> Say "hello" with the speak tool.
Uninstall: dsh plugin --profile web remove dsh-talk (or delete the row from the profile patch).
If pnpm reports
ERR_PNPM_IGNORED_BUILDSfor this package (esbuild's harmless platform-binary validation), addallowBuilds: { esbuild: true }to yourpnpm-workspace.yaml— thedshCLI prints the exact snippet.
Every PerryLink plugin can be browsed in the market built into DSH Desktop: Market → Sources → Add source → paste https://perrylink-dsh-catalog.perrylink.workers.dev/catalog-source.json → select it. Installation still goes through the market's npm identity check and your confirmation.
Remote browsers need a secure origin
The browser microphone (getUserMedia / Web Speech / MediaRecorder) only works in a
secure context: https://… or http://localhost / http://127.0.0.1. A plain
http://<LAN-IP>:3081 page — including Safari on another machine — will not expose
the microphone, even if the Talk settings are correct.
For a remote browser, use one of:
- open the Web UI through an HTTPS reverse proxy or tunnel;
- SSH-forward the port and open
http://localhost:<port>on the client; - keep the UI on the same machine as the browser.
stt.engine: funasr / whisper changes where transcription runs, not the browser
capture permission; recording still needs the secure context.
Core capabilities
dsh-talk closes the voice loop in both directions:
speaktool — the agent speaks its replies aloud. TTS engines: the browser voice,edge-tts(network neural voices), orpiper(local). Audio plays in the browser; with a local engine it is also written to a file and the tool result carries the absolute path (audioPath) for other tools to consume; on hosts that can carry it, the session log records the sanitized utterance (see Security boundaries).- Composer mic button — press it, speak, and the transcription lands in the input box (or submits directly). STT engines: the browser's Web Speech (interim results included), a FunASR HTTP server, or local
whisper.cpp. - Speak-to-interrupt — starting to talk stops whatever is playing (client → host over the
talkRemote namespace). - Event announcements — turn completion, pending approvals (waterfall-safe: never blocks the gate), and errors, with a mute switch and configurable phrases.
- Settings tab — engine/language selects and announcement switches, saved as append-only profile-patch operations with backups.
browser host
🎙 press ──▶ interrupt ─────────────────▶ talk/interrupt
record (MediaRecorder / Web Speech)
transcribe (browser) or talk/transcribe ─▶ FunASR / whisper.cpp
setDraft(text) or submit() ◀── talk:speech projection ── speak tool / announcements
▶ play audio (talk/audio or speechSynthesis)
Tools & surfaces
| Surface | Kind | Notes |
|---|---|---|
speak |
tool | Speaks text aloud (browser/edge-tts/piper); per-call engine/voice overrides; canonical JSON outcome |
| mic button | conversation.input.left slot |
Record → transcribe → fill draft (or submit); speak-to-interrupt on press |
| settings tab | settings.plugins.tab (id talk) |
Engine/language/announcement switches; append-only save |
talk:* |
Typert Remote | status, audio, transcribe, applySettings, interrupt (host namespace) |
Examples

Animated replay of a real run recorded in this repository.
These are the real surfaces; the settings tab and mic button are the UI entry points.
Detailed example — command speak, input:
{"text":"hello","engine":"browser"}
Output:
Spoke hello aloud with the browser engine. No audio file: the browser engine synthesizes in the browser.
Observed from plugins/dsh-talk/tests/lifecycle.spec.ts:124-137; renderer at src/tool.ts:47-64
Failure branch — input:
{"text":" "}
Output:
Error: dsh-talk: speak text must not be empty
Observed from plugins/dsh-talk/src/tool.ts:124; plugins/dsh-talk/tests/tool.spec.ts:41-44
Brief examples: talk:status · talk:transcribe
Configuration
All tunables are Schemastery Config fields (changeable from cordis.yml). cordis.patch.yml documents each key inline.
Most-used keys:
| Key | Default | Meaning |
|---|---|---|
record.enabled |
true |
Show the composer mic button |
record.autoSubmit |
false |
Submit the transcription as a user message (false = fill the draft) |
stt.engine |
auto |
auto / web / funasr / whisper; auto prefers a configured local engine, then Web Speech |
tts.engine |
auto |
auto / browser / edge-tts / piper; auto prefers piper, then edge-tts, then the browser voice |
tts.export.dir |
<home>/.dsh-talk/audio |
Export directory; ~ = home, a relative path resolves under home (never the workspace) |
announce.enabled |
true |
Master switch for event announcements |
interrupt |
true |
Talking stops current playback |
maxSpeakChars |
20000 |
Cap on the speak tool's text length (1..100000) |
| Key | Default | Meaning |
|---|---|---|
record.enabled |
true |
Show the composer mic button |
record.hotkey |
(none) | Optional toggle hotkey, e.g. "alt+r" |
record.maxSeconds |
60 |
Recording cap in seconds (1..600) |
record.autoSubmit |
false |
Submit the transcription as a user message (false = fill the draft) |
record.vad.enabled / silenceMs / energyThreshold |
true / 1500 / 0.01 |
Voice-activity detection: silence auto-ends the recording (degrades when AudioContext is absent) |
stt.engine |
auto |
auto / web / funasr / whisper; auto prefers a configured local engine, then Web Speech |
stt.language |
auto |
BCP-47 language or auto |
stt.interim |
true |
Show interim transcriptions (Web Speech) |
stt.silenceFinaliseMs |
4000 |
Stop continuous Web Speech recognition after this many milliseconds without speech (500..15000) |
stt.funasr.url |
(none) | FunASR inference endpoint; required when the engine is funasr |
stt.whisper.modelPath |
(none) | whisper.cpp model; required when the engine is whisper |
tts.engine |
auto |
auto / browser / edge-tts / piper; auto prefers piper, then edge-tts, then the browser voice |
tts.rate |
0 |
Rate offset in percent (-50..50) for edge-tts/piper |
tts.fallbackToBrowser |
true |
Fall back to the browser voice when a local engine fails |
tts.browser.voiceName |
(none) | Preferred browser voice name; an unknown name uses the platform default |
tts.browser.rate |
1 |
Browser SpeechSynthesis rate (0.1..10) |
tts.browser.pitch |
1 |
Browser SpeechSynthesis pitch (0..2) |
tts.piper.modelPath |
(none) | piper voice model; required when the engine is piper |
tts.export.enabled |
true |
Write locally synthesized audio to a file and return its path as audioPath |
tts.export.dir |
<home>/.dsh-talk/audio |
Export directory; ~ = home, a relative path resolves under home (never the workspace) |
tts.export.maxFiles |
20 |
Files retained in the export directory, counting the one just written (1..1000) |
tts.export.maxAgeMinutes |
1440 |
Exported files older than this many minutes are pruned on the next write (1..10080) |
announce.enabled |
true |
Master switch for event announcements |
announce.onTurnEnd / onApproval / onError |
true |
Which events are spoken |
announce.messages.* |
"Turn complete." etc. | Spoken phrases |
interrupt |
true |
Talking stops current playback |
maxSpeakChars |
20000 |
Cap on the speak tool's text length (1..100000) |
maxAudioCacheBytes |
8388608 |
In-memory synthesized-audio cache cap (1 MiB..64 MiB) |
stt.silenceFinaliseMs and record.vad.silenceMs are separate mechanisms: the first finalises the Web Speech transcript when continuous recognition hears no speech, the second is the MediaRecorder energy-based detector that ends the recording (and submits it when record.autoSubmit is on). They run in different pipelines and share no state.
Audio file export
Every utterance synthesized by a local engine (edge-tts, piper) is written to a file in addition to the in-memory cache the browser plays from. The browser engine synthesizes on the client and therefore exports nothing — that state is reported explicitly, never silently.
- Where:
tts.export.dir, default<home>/.dsh-talk/audio— the plugin's own directory. It is deliberately never the host's working directory, so a repository is never polluted; a relativetts.export.diris resolved under the home directory for the same reason. - Names:
speech-<YYYYMMDD>T<HHMMSS>Z-<8 hex>.mp3(edge-tts) or.wav(piper). The stamp is UTC so names sort chronologically, and the token comes from the utterance id, so a file maps back to itsdsh-talk/speechlog entry. The spoken text is never part of a file name. - Cleanup: bounded on every write, age first and count second. Files older than
tts.export.maxAgeMinutes(default 1440 = 24 h) are removed, then the oldest files are removed until the directory holds at mosttts.export.maxFiles(default 20, counting the file just written). Pruning only ever unlinks names matching this plugin's ownspeech-…pattern, so other files in a shared directory are never touched. With the defaults the directory holds at most 20 files (~a few MB) and nothing older than a day. - Failure: exporting is an addition to speech, never a precondition. If the directory cannot be created or written, the utterance still plays and the result reports
audioExport: "failed"with the reason; pruning failures are ignored and retried on the next write. - Model-visible path: the
speaktool's canonical value carriesaudioPath(plusaudioExportand, when there is no file,exportNote), and the same path is in the rendered result text — so the agent can pass it straight to another tool that takes a file, for example a messenger plugin's file argument. Event announcements (turn end, approval, error) are synthesized through the same pipeline and are exported the same way; they are bounded by the same caps. - Handing the file to another plugin: a consumer that only accepts files inside its own workspace —
dsh-wechat'ssend_wechatrefuses afile_pathoutside the calling session's workspace unless its ownallowAnyFilePathsetting is on — will reject a path under your home directory. For that flow, pointtts.export.dirat a directory inside that workspace (for example<workspace>/.dsh-talk-audio); the default stays outside every repository on purpose.
Profile-patch override example:
- insert:
- id: talk
name: dsh-talk
config:
tts:
rate: 10
fallbackToBrowser: false
announce:
onApproval: false
FAQ
Audio bytes only enter the in-memory cache (maxAudioCacheBytes, 8 MiB by default) and, for local engines, the export directory (tts.export.*, at most 20 files and 24 h by default) — never the model context or the session log. The dsh-talk/speech event is written only where the host vocabulary accepts it, and carries just the utterance id, engine, reason, size, sanitized text, and the browser voice parameters when applicable. The one persistent file path is audioPath — it is meant to be handed to another tool, so it does appear in the speak tool result.
No. On 0.1.1-rc.2, the 0.1.2-alpha line, 0.1.2-rc.1, and 0.1.6-alpha.2 the host vocabulary does not know the event, the gate writes nothing, and the client's session-scoped playback list stays empty; but the host keeps per-session appended/skipped counters that talk/latest(sessionId) reads back, and the speak tool results remain the reconstructable audit trail. Speech, the mic, the settings tab, and the tool itself are unaffected.
No. Every tool is namespaced, it provides exactly one service key (talk, not a built-in seam and not provided by any surveyed high-star plugin), registers no client slot key, registers no webServer prefix, and mutates no globals. The ordering-sensitive approval/request listener always delegates through next(), so the chain is never short-circuited. The full argument is in "Interoperability with other DSH plugins".
There are no extra model calls. Transcription happens in the browser or in the engine you configure; local TTS spawns one subprocess per utterance, audio goes into a bounded in-memory cache, and export writes use the two-dimensional prune (age first, then count). Event announcements are fire-and-forget, and approval/request only starts an asynchronous utterance — it never blocks the approval.
Security boundaries
- Model-visible ⟺ logged — the model sees only the speak tool's canonical value and render text. The
dsh-talk/speechevent is appended only when the host can carry it (see Host compatibility); thetool/call+tool/resultevents always remain the reconstructable trail. - Approval announcements never block — the
approval/requestlistener always callsnext(). - Sanitized output — credentials and temp audio paths never reach logs or displays. The one deliberate exception is the exported audio path in the speak result, which is a persistent file in the plugin's own directory (still passed through the secret redactor) and is meant to be handed to another tool.
- Host compatibility — the
dsh-talk/speechevent is appended through a yes/no gate. Hosts whose known-type vocabulary covers the event append it, and the call reports that it did; every other host — every released line through0.1.1-rc.2, the0.1.2-alphaline,0.1.2-rc.1, and also0.1.6-alpha.2, whoseSession.appendcan stamp only the surface intent and not theignorableenvelope (that field is retained for stored-log read compatibility only) — gets no append, so speech can never pollute the session log there. The skip is not silent any more: the host keeps per-session appended/skipped counters andtalk/latest(sessionId)reads them back, the client's session-scoped playback list stays empty, and the speak tool results remain the reconstructable audit trail. - Fail loud — invalid engines, out-of-range values, and engines configured without their required model/endpoint fail the mount.
Permissions & data
- Permissions: the plugin keeps an in-memory, byte-capped audio cache for playback and, for local engines, writes the synthesized audio to its own bounded directory (
tts.export.*, default<home>/.dsh-talk/audio, at most 20 files and 24 h old by default); microphone permission is browser-mediated. The settings tab only appends patch fragments to the profile with a timestamped backup — never rewrites the file. - Data: audio bytes never enter the model context or the session log. Where the host's session vocabulary accepts it, the
dsh-talk/speechevent carries the utterance id, engine, reason, size, sanitized text, and browser voice/rate/pitch when applicable; on envelope-less hosts the event is not written at all. Thespeaktool result carries the exported file's path (a persistent artifact in the plugin's own directory), and everything else on a display/log surface passes the redaction helpers, so credentials, JWTs, bearer headers, and temp paths stay out. - Network: only the engines you configure are contacted.
edge-ttsperforms network synthesis, FunASR uses its configured endpoint, and Chrome'swebkitSpeechRecognitionsends microphone audio to Google's servers for transcription; browserspeechSynthesisplayback remains local.
Known limitations
- Browser support: Web Speech and MediaRecorder are feature-detected; without them the mic button disables itself and host engines (FunASR/whisper.cpp) can still transcribe when configured.
- Local engines are your install:
edge-tts,piper, andwhisper.cppexecutables and models must be installed separately. - Audio files need a local engine: the browser voice synthesizes on the client, so
speakreturns noaudioPaththere (the result says so explicitly), and a local engine that fails and falls back to the browser also has no file. Exported files live in the plugin's own bounded directory — see Audio file export for the location, naming, and cleanup rules. - Recording format: the browser records with its native MediaRecorder codec; whisper.cpp may require a WAV-configured recorder or a server-side conversion for other formats.
- Settings apply on reload: the settings tab appends to the profile patch; a profile reload (or web-app restart) activates the changes.
- Live playback history is empty on hosts without the vocabulary: on
0.1.1-rc.2, the0.1.2-alphaline,0.1.2-rc.1, and0.1.6-alpha.2the host vocabulary does not knowdsh-talk/speech, so the gate writes nothing and the client's session-scoped playback list stays empty;talk/latest(sessionId)still answers with the newest utterance and the skipped counter. Speech itself, the mic, the settings tab, and the tool are unaffected. - Legacy logs written by dsh-talk ≤ 0.2.1 may need repair before cold load: versions through
0.2.1appended unmarkeddsh-talk/speechevents. On hosts0.1.0-rc.7and newer, a session whose log already contains them fails its next cold load withSessionFormatUnsupportedError. Repair: stop the host, back up the session's.jsonllog, add"ignorable":trueas a top-level member of every JSON line whose"type"is"dsh-talk/speech"(for example, insert"ignorable":true,right after the opening{), then reopen the session. Nothing else changes and nothing is lost; new appends from this version never add unmarked events.
Interoperability with other DSH plugins
Verified against DSH 0.2.0-rc.2 (the runtime this README ships for) and the high-star plugin set surveyed on 2026-10-05.
This plugin does not interfere with other plugins, including the widely installed high-star ones:
- No tool-name collision. Every tool is namespaced; no bare name owned by a shipped tool or another plugin is registered.
- No service-key collision. It provides
talk; that key is not a built-in seam and is not provided by any surveyed high-star plugin. - No slot collision. It registers no client slot key, so it cannot contend for a
shadows-shipped-uiseat. - No HTTP route collision. It registers no
webServerprefix. - No patch-layer collision. The bundle patch only
inserts its own row; it never overrides a built-in row'sconfig. - No global mutation. It does not patch prototypes, rewrite
process.env, or replace the global fetch dispatcher.
Shared event listeners are non-interfering by construction. It observes the ordering-sensitive event approval/request with ctx.on() — Cordis's broadcast registration, where every listener runs and none can starve another. Every listener here delegates through next(), so the chain is never short-circuited, and a mutation is applied to the value next() produced rather than returned in its place:
Static evidence: dsh-plugin-doctor K10–K13 report pass for every check on this repository.
Compatibility
| Surface | Status |
|---|---|
| Harness | DeepSeek Harness dsh-v0.2.2-rc.4 (adapted 2026-11-18: third peer clause + engines.dsh + manifestVersion: 1, and the monthly Compat workflow anchored to that line); full gate chain green on 2026-11-18 (dual typecheck rulers, 86 tests, build, self-contained, artifacts, pack). npm dev/test line 0.1.7-rc.2, peers >=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.2-0 <0.3.0. |
| Node | ^22.19.0 || >=24.9.0 |
| Browser | Web Speech + MediaRecorder (Chrome/Edge best); host transcription/TTS engines for the rest |
Ecosystem & quality
- Gitee mirror (sync mirror; GitHub is canonical)
- dshfind plugin page (installs and ranking)
- OpenSSF Scorecard report (driven by .github/workflows/scorecard.yml)
- dsh-plugin-doctor verification report (K10–K13 all
pass) - DSH Market (listed)
- 1024 store channel:
npm i -g dsh1024once, thendsh1024 plugin --profile web add dsh-talk(counts toward the deepseek1024.com install ranking) - Ecosystem knowledge base: plugin development guide · selection data · maintenance criteria
Development
pnpm install # node ^22.19 || >=24.9
pnpm run typecheck # tsc: src + tests against the local harness checkout
pnpm run typecheck:ci # tsc against the published 0.1.7-alpha.2 types (no paths)
pnpm test # vitest: 108 tests, 16 suites
pnpm run build # tsc declarations + tsdown bundles (lib/)
pnpm run verify:self-contained # dependency specs resolve from the registry
pnpm run verify:artifacts # built ESM faces + client ModuleLoader handshake
pnpm run check:readmes # five-language README consistency
pnpm pack # the published tarball
The README images are generated by scripts/gen-readme-assets.py (Python + Pillow for the hero, hand-written SVG for the structure map): docs/assets/dsh-talk-hero-{zh,en}-{light,dark}.webp and docs/assets/dsh-talk-flow-v5-{light,dark}.svg, safe to re-run.
Topics: dsh, dsh-plugin, deepseek-harness, deepseek, cordis, voice, speech, tts, stt, speech-to-text, text-to-speech, microphone
Family & thanks
This project is part of the DeepSeek Harness plugin family from PerryLink (99 plugins, all Apache-2.0). If it is useful, a star helps the next person find it — nothing is gated behind it.
- @PerryLink — creator and maintainer: speak pipeline, speech engines, mic recorder, event announcements, projection unit, and the five-language docs.
- @Mo-Mia — Web Speech privacy/compatibility, composer input actions, language fallback, continuous dictation,
talk:speechprojection, and browser TTS design proposals (#2–#9); several informed the current settings surface.
License
LICENSE (Apache License 2.0) © 2026 dsh-talk contributors
Links
More in this category
Yuuyuko-uu/dsh-tts-bridge★ 272
Reads DSH conversations aloud using the DeepSeek web page's built-in read-aloud, driven by a small browser extension.
Fishsb/dsh-voice-prompt-enhancer★ 137
Rewrites a composer draft into a clearer, structured prompt (5 modes, model fallback chain, optional multi-round memory) and adds stop-on-silence, hotkey and filler-word cleanup to DSH voice input; transcription stays with the official speechToText, the plugin ships no engine.
cloudoyx/any-audio★ 79
DSH has its own audio workstation too: real recordings, multiple TTS engines, genuine sound effects and local singing synthesis, with every generated sound landing as its own clip on one visible timeline that you can audition, balance and fine-tune track by track. Use it for scoring animation, producing audiobooks and radio drama, composing and mixing on your own, making ASMR, and whatever else you come up with.
ppy-web/dsh-plugin-xiaomi-mimo-tts★ 77
Voice Studio for DSH with 10+ cloud and local speech engines (Xiaomi MiMo, Doubao, Breeze, DeepSeek, local MOSS-Nano, browser speech, external adapters) plus cloud ASR, smart text filtering, live subtitles and voice orbs, /director multi-role WAV drama studio, and desktop pet, novel, QQ Bot, dsh-Go, and AI Passport integrations. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
PolinniZhong/dsh-omi-voice★ 75
In-chat read-aloud for DeepSeek Harness: tap to read, pause and resume AI replies with natural Doubao TTS voices (BYOK), reading only the final answer with code, tables and diagrams filtered; local engine, plugin keeps no API key.
1624318455/dsh-plugin-tts★ 66
Reads assistant replies aloud via free Edge TTS or your own RVC voice models: read-aloud buttons + auto-read, adaptive chunked progressive playback (gapless long reads), one-click voice-pack installs from a registry, and a portable RVC runtime.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.