๐ŸŽ™๏ธ dsh-talk

August 30, 2026 ยท View on GitHub

๐ŸŽ™๏ธ dsh-talk

  • 1024 store channel: npm i -g dsh1024 once, then dsh1024 plugin --profile web add dsh-talk (counts toward the deepseek1024.com install ranking). Gitee

Voice-first session loop for DeepSeek Harness: talk to it, hear it answer.

Press the mic, speak, and the reply is spoken back โ€” with speak-to-interrupt.

License DSH plugin Node CI Version npm version npm downloads

English ยท ็ฎ€ไฝ“ไธญๆ–‡ ยท Espaรฑol ยท Portuguรชs ยท เคนเคฟเคจเฅเคฆเฅ€


Compatibility

SurfaceStatus
HarnessDeepSeek Harness 0.1.1-rc.2
Node^22.19.0 || >=24.0.0
BrowserWeb Speech + MediaRecorder (Chrome/Edge best); host transcription/TTS engines for the rest

What you get

dsh-talk closes the voice loop in both directions:

  • speak tool โ€” the agent speaks its replies aloud. TTS engines: the browser voice, edge-tts (network neural voices), or piper (local). Audio plays in the browser; the session log records the sanitized utterance.
  • 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 talk Remote 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)

Quick start

# 1. install the bundle into your profile
dsh plugin --profile web add "github:PerryLink/dsh-talk#main"

# or from npm (published releases)
dsh plugin --profile web add dsh-talk

# 2. restart and verify the row
dsh --profile web --dump-config | grep -A2 'id: talk'

Then press the microphone next to the composer and talk; ask the agent to speak its reply:

> Say "hello" with the speak tool.

Install & uninstall

  • git channel (latest main): dsh plugin --profile web add "github:PerryLink/dsh-talk#main" โ€” the prepare script builds with production dependencies only.
  • 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>.tgz.
  • uninstall: dsh plugin --profile web remove dsh-talk (or remove the row from the profile patch).

If pnpm reports ERR_PNPM_IGNORED_BUILDS for this package (esbuild's harmless platform-binary validation), add allowBuilds: { esbuild: true } to your pnpm-workspace.yaml โ€” the dsh CLI prints the exact snippet.

Configuration

All tunables are Schemastery Config fields (changeable from cordis.yml). cordis.patch.yml documents each key inline.

KeyDefaultMeaning
record.enabledtrueShow the composer mic button
record.hotkey(none)Optional toggle hotkey, e.g. "alt+r"
record.maxSeconds60Recording cap in seconds (1..600)
record.autoSubmitfalseSubmit the transcription as a user message (false = fill the draft)
record.vad.enabled / silenceMs / energyThresholdtrue / 1500 / 0.01Voice-activity detection: silence auto-ends the recording (degrades when AudioContext is absent)
stt.engineautoauto / web / funasr / whisper; auto prefers a configured local engine, then Web Speech
stt.languageautoBCP-47 language or auto
stt.interimtrueShow interim transcriptions (Web Speech)
stt.silenceFinaliseMs4000Stop 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.engineautoauto / browser / edge-tts / piper; auto prefers piper, then edge-tts, then the browser voice
tts.rate0Rate offset in percent (-50..50) for edge-tts/piper
tts.fallbackToBrowsertrueFall 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.rate1Browser SpeechSynthesis rate (0.1..10)
tts.browser.pitch1Browser SpeechSynthesis pitch (0..2)
tts.piper.modelPath(none)piper voice model; required when the engine is piper
announce.enabledtrueMaster switch for event announcements
announce.onTurnEnd / onApproval / onErrortrueWhich events are spoken
announce.messages.*"Turn complete." etc.Spoken phrases
interrupttrueTalking stops current playback
maxSpeakChars20000Cap on the speak tool's text length (1..100000)
maxAudioCacheBytes8388608In-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.

Tools & surfaces

SurfaceKindNotes
speaktoolSpeaks text aloud (browser/edge-tts/piper); per-call engine/voice overrides; canonical JSON outcome
mic buttonconversation.input.left slotRecord โ†’ transcribe โ†’ fill draft (or submit); speak-to-interrupt on press
settings tabsettings.plugins.tab (id talk)Engine/language/announcement switches; append-only save
talk:*Typert Remotestatus, audio, transcribe, applySettings, interrupt (host namespace)

Permissions & data

  • Permissions: the plugin stores nothing but an in-memory, byte-capped audio cache; 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 never enters the model context or the session log. The dsh-talk/speech event carries the utterance id, engine, reason, size, sanitized text, and browser voice/rate/pitch when applicable. All display/log surfaces redact credentials, JWTs, bearer headers, and temp paths.
  • Network: only the engines you configure are contacted. edge-tts performs network synthesis, FunASR uses its configured endpoint, and Chrome's webkitSpeechRecognition sends microphone audio to Google's servers for transcription; browser speechSynthesis playback remains local.origin/main

Security boundaries

  • Model-visible โŸบ logged โ€” the model sees only the speak tool's canonical value; every utterance is reconstructable from the session log.
  • Approval announcements never block โ€” the approval/request listener always calls next().
  • Sanitized output โ€” credentials and temp audio paths never reach logs or displays.
  • Host compatibility โ€” the dsh-talk/speech session event is appended without the ignorable marker, because no released DSH host through 0.1.1-rc.2 lets a plugin set it. Hosts from 0.1.0-rc.7 onward refuse to cold-load a session log that carries an unmarked event type they do not know, so a session that has spoken at least once fails its next cold load with SessionFormatUnsupportedError. The log is intact and repairable (see Known limitations). The planned fix carries live playback over a Remote push instead of the session log and writes the log event only on hosts that can mark it ignorable.
  • Fail loud โ€” invalid engines, out-of-range values, and engines configured without their required model/endpoint fail the mount.

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, and whisper.cpp executables and models must be installed separately.
  • 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.
  • Session refuses to cold-load after speech: on hosts 0.1.0-rc.7 and newer, a session's next cold load fails with SessionFormatUnsupportedError once its log contains unmarked dsh-talk/speech events. Repair: stop the host, back up the session's .jsonl log, add "ignorable":true as 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.

Development

pnpm install        # node ^22.19 || >=24
pnpm run typecheck  # tsc: src + tests against the local harness checkout
pnpm run typecheck:ci  # tsc against the published 0.1.1-rc.2 types (no paths)
pnpm test           # vitest: 74 tests, 12 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 pack           # the published tarball

Topics

dsh, dsh-plugin, deepseek-harness, deepseek, cordis, voice, speech, tts, stt, speech-to-text, text-to-speech, microphone

Contributors

  • @PerryLink โ€” creator and maintainer: speak pipeline, speech engines, mic recorder, event announcements, projection unit, and the five-language docs.

This project is one of the 33 DeepSeek Harness plugins maintained by PerryLink. If this one helps you, the others likely will too:

PluginOne-liner
dsh-dsh-auto-reviewSecond-model auto-review on the approval chain, fail-closed by default
dsh-dsh-background-agentsDurable background child agents with a Web UI sidebar, messaging and interrupt
dsh-dsh-budgetCost governance for DeepSeek Harness: budgets, carbon, and latency in one panel.
dsh-dsh-checkpoint-rewindClaude Code /rewind-equivalent: snapshots, session forks, one-shot restore
dsh-dsh-claude-moveMigrate Claude Code sessions, memory, skills and CLAUDE.md into DSH
dsh-dsh-clickCross-platform native desktop control for DeepSeek Harness โ€” Windows first.
dsh-dsh-composer-historyTerminal-style input history for the web composer: arrows, Ctrl+R search
dsh-dsh-data-qualityDataset quality checks and citation cross-checks (the optional numeric bridge consumed here)
dsh-dsh-defendPrompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness.
dsh-dsh-doublecheckEngineering-discipline guard: requirements grill, test gates, adversary review
dsh-dsh-drawUnified static-image generation routing for DeepSeek Harness.
dsh-dsh-fastRead-only performance diagnostics for DeepSeek Harness.
dsh-dsh-fund-researchDeterministic research reports for Chinese public mutual funds
dsh-dsh-githubGitHub PR/issues integration for DSH, every write gated by approval
dsh-dsh-industry-researchIndustry research orchestration that seals its deliverables through this plugin's ctx.researchReport.assemble
dsh-dsh-libraryLocal document knowledge base for DeepSeek Harness.
dsh-dsh-local-aiLocal-model (Ollama) integration for DeepSeek Harness.
dsh-dsh-lsp-actionsLSP diagnostics, formatting, completion, code actions and rename over language servers
dsh-dsh-maskPII masking middleware: anonymize at the model boundary, restore at the display layer
dsh-dsh-mcp-panelRead-only MCP runtime panel: /mcp command + Settings tab with status, tools and errors
dsh-dsh-mementoApproval-gated cross-session memory: ctx.memory seam + SQLite + memory tool
dsh-dsh-observeOpenTelemetry and Langfuse observability exporter for DeepSeek Harness.
dsh-dsh-output-stylesClaude Code outputStyles-equivalent runtime style switching
dsh-dsh-permission-rulesClaude Code-style declarative allow/deny/ask permission rules with audit
dsh-dsh-plugin-guidePlugin-development knowledge base as an on-demand agent skill
dsh-dsh-research-reportVerifiable research-report engine: content-addressed evidence ledger and sealed versions
dsh-dsh-scoreMulti-dimensional quality scoring for DeepSeek Harness plugins.
dsh-dsh-session-pinPin sessions in the Web sidebar with durable ordering
dsh-dsh-session-syncCross-device session sync for DeepSeek Harness โ€” a dedicated git mirror of your session store.
dsh-dsh-skill-pack-securitySecurity-audit skill pack: secret scan, dependency and supply-chain review
dsh-dsh-test-driveIsolated install-and-smoke test drives for DeepSeek Harness plugins.
dsh-dsh-translateVendor parameter translation and deterministic JSON repair for DeepSeek Harness.

License

Apache License 2.0 ยฉ 2026 dsh-talk contributors