全部插件

dsh-talk

dsh-talk · 版本 0.3.20 · 更新于 2026年11月29日

通过 1024 商店安装时,先执行一次 npm i -g dsh1024,再执行 dsh1024 plugin --profile web add dsh-talk。安装计入 deepseek1024.com 的安装排名。

  • 逐版审核
  • 工具能力
  • Apache-2.0
  • 0次下载

说明

以下为插件作者提供的原文。

🎙️ dsh-talk

  • 1024 商店渠道:先 npm i -g dsh1024,再 dsh1024 plugin --profile web add dsh-talk(计入 deepseek1024.com 安装排行)。

DeepSeek Harness 的 voice-first 会话闭环:对它说话,听它回答。

按下麦克风说话,回复会被朗读出来——说话即打断。

License Gitee DSH plugin dsh-doctor DSH Market Node CI Version npm version npm downloads dshfind

English · 简体中文 · Español · Português · हिन्दी


📖 生态实测知识库(实测数据,不是营销):插件开发指南 · 选型实测数据 · 维护取舍判据。

⭐ 如果它帮到了你

这个插件是 DSH 插件家族的一员(40+ 个,全部 Apache-2.0)。如果你在用,给个 star —— 它不会解锁任何功能,但会让下一个人在搜索里更容易找到它。

English: part of a 40+ plugin family for DeepSeek Harness. If it is useful, a star helps the next person find it — nothing is gated behind it.

What is dsh-talk?

DeepSeek Harness 的 voice-first 会话闭环:对它说话,听它回答。

按下麦克风说话,回复会被朗读出来——说话即打断。

dsh-talk 终端演示:dsh-talk — install, verify the row, then talk to the session

Animated terminal demo of dsh-talk

同一次运行,动图版。

兼容性

方面状态
HarnessDeepSeek Harness dsh-v0.2.1-alpha.1(2026-09-24 适配:peer 第三段 + engines.dsh + manifestVersion: 1,月度 Compat workflow 已锚定该线);门禁链于 2026-09-24 全绿(双 typecheck 尺子、86 个测试、build、self-contained、artifacts、pack)。npm 开发/测试线 0.1.7-rc.2,peers `>=0.1.2-rc.1 <0.2.0
Node^22.19.0 || >=24.0.0
浏览器Web Speech + MediaRecorder(Chrome/Edge 最佳);其余场景用宿主侧转写/TTS 引擎

你能得到什么

dsh-talk 双向闭合语音环路:

  • speak 工具 —— agent 朗读自己的回复。TTS 引擎:浏览器语音、edge-tts(网络神经语音)或 piper(本地)。音频在浏览器播放;在能够承载该事件的宿主上,会话日志记录脱敏后的朗读内容(见安全边界)。
  • 输入框麦克风按钮 —— 按下说话,转写文本自动回填输入框(或直接提交)。STT 引擎:浏览器 Web Speech(含中间结果)、FunASR HTTP 服务或本地 whisper.cpp。
  • 说话即打断 —— 开始说话即停止当前播报(经 client→host 的 talk Remote 通道)。
  • 事件播报 —— 回合完成、待审批(waterfall 安全:绝不阻塞门禁)与出错,带静音开关与可配话术。
  • 设置页签 —— 引擎/语言选择与播报开关,以追加式 profile patch 操作保存(带备份)。
浏览器                                 宿主
  🎙 按下 ──▶ 打断 ────────────────────▶ talk/interrupt
  录音(MediaRecorder / Web Speech)
  转写(浏览器)或 talk/transcribe ────▶ FunASR / whisper.cpp
  回填草稿或提交  ◀── talk:speech 投影 ── speak 工具 / 事件播报
  ▶ 播放音频(talk/audio 或 speechSynthesis)

快速开始

sole plugin --profile web add github:PerryLink/dsh-talk
# 1. 把 bundle 装进你的 profile
sole plugin --profile web add github:PerryLink/dsh-talk

# 或从 npm 安装(正式发布版)
sole plugin --profile web add dsh-talk

# 2. 重启并核实行
dsh --profile web --dump-config | grep -A2 'id: talk'

然后按下输入框旁的麦克风说话;也可以让 agent 用 speak 工具朗读回复:

> 用 speak 工具说"你好"。

安装与卸载

  • git 通道(最新 main):sole plugin --profile web add github:PerryLink/dsh-talk —— prepare 脚本仅用生产依赖构建。
  • npm 通道(正式发布版):sole plugin --profile web add dsh-talk。
  • tarball 通道:在本仓库执行 pnpm pack,然后 sole plugin --profile web add ./dsh-talk-<version>.tgz。
  • 卸载:sole plugin --profile web remove dsh-talk(或从 profile patch 中删除该行)。

如果 pnpm 对本包报 ERR_PNPM_IGNORED_BUILDS(esbuild 的平台二进制无害校验),在你的 pnpm-workspace.yaml 中加入 allowBuilds: { esbuild: true } —— dsh CLI 会打印确切片段。

配置

所有可调项都是 Schemastery Config 字段(可在 cordis.yml 中修改)。cordis.patch.yml 内联说明了每个键。

键默认值含义
record.enabledtrue显示输入框麦克风按钮
record.hotkey(无)可选切换快捷键,如 "alt+r"
record.maxSeconds60录音上限(秒,1..600)
record.autoSubmitfalse转写结果直接作为用户消息提交(false = 回填草稿)
record.vad.enabled / silenceMs / energyThresholdtrue / 1500 / 0.01语音活动检测:静音自动结束录音(缺 AudioContext 时降级为手动停止)
stt.engineautoauto / web / funasr / whisper;auto 优先已配置的本地引擎,其次 Web Speech
stt.languageautoBCP-47 语言或 auto
stt.interimtrue显示中间转写(Web Speech)
stt.silenceFinaliseMs4000连续 Web Speech 在没有语音活动达到此毫秒数后停止(500..15000)
stt.funasr.url(无)FunASR 推理端点;引擎为 funasr 时必填
stt.whisper.modelPath(无)whisper.cpp 模型;引擎为 whisper 时必填
tts.engineautoauto / browser / edge-tts / piper;auto 优先 piper,其次 edge-tts,最后浏览器语音
tts.rate0edge-tts/piper 语速偏移(百分比,-50..50)
tts.fallbackToBrowsertrue本地引擎失败时回退浏览器语音
tts.browser.voiceName(无)首选浏览器语音名称;未找到时使用平台默认语音
tts.browser.rate1浏览器 SpeechSynthesis 语速(0.1..10)
tts.browser.pitch1浏览器 SpeechSynthesis 音高(0..2)
tts.piper.modelPath(无)piper 语音模型;引擎为 piper 时必填
announce.enabledtrue事件播报总开关
announce.onTurnEnd / onApproval / onErrortrue播报哪些事件
announce.messages.*"Turn complete." 等播报话术
interrupttrue开始说话即停止当前播放
maxSpeakChars20000speak 工具文本上限(1..100000)
maxAudioCacheBytes8388608内存合成音频缓存上限(1 MiB..64 MiB)

stt.silenceFinaliseMs 与 record.vad.silenceMs 是两套独立机制:前者在连续 Web Speech 识别听不到语音时定稿转写文本;后者是 MediaRecorder 的能量检测器,用于结束录音(record.autoSubmit 开启时随即提交)。两者处于不同流水线,不共享任何状态。

工具与界面

界面类型说明
speak工具朗读文本(browser/edge-tts/piper);支持单次引擎/音色覆盖;规范 JSON 结果
麦克风按钮conversation.input.left 槽位录音 → 转写 → 回填草稿(或提交);按下即打断
设置页签settings.plugins.tab(id talk)引擎/语言/播报开关;追加式保存
talk:*Typert Remotestatus、audio、transcribe、applySettings、interrupt(宿主命名空间)

权限与数据

  • 权限:插件只保存内存中、字节受限的音频缓存;麦克风权限由浏览器管理。设置页签只向 profile 追加 patch 片段(带时间戳备份)——绝不重写文件。
  • 数据:音频绝不进入模型上下文或会话日志。在宿主的会话词汇表接受该事件的宿主上,dsh-talk/speech 事件携带朗读 id、引擎、原因、大小、脱敏文本,并在适用时携带浏览器语音、语速和音高;在无信封宿主上该事件完全不写入。所有展示/日志面都会脱敏凭据、JWT、bearer 头与临时路径。
  • 网络:只联系你配置的引擎。edge-tts 执行网络合成,FunASR 使用其配置的端点,而 Chrome 的 webkitSpeechRecognition 会将麦克风音频发送到 Google 服务器进行转写;浏览器的 speechSynthesis 播放仍在本机完成。

安全边界

  • 模型可见 ⟺ 已记录 —— 模型只看到 speak 工具的规范值与渲染文本。dsh-talk/speech 事件只在宿主能够承载它时写入(见宿主兼容性);tool/call + tool/result 事件始终是可重建的痕迹。
  • 审批播报绝不阻塞 —— approval/request 监听器总是调用 next()。
  • 输出脱敏 —— 凭据与临时音频路径绝不上日志或展示面。
  • 宿主兼容性 —— dsh-talk/speech 事件经「是/否」门写入:已知词汇表覆盖该事件的宿主直接追加,且调用方可知追加已发生;其余宿主——截至 0.1.1-rc.2 的全部已发布线、0.1.2-alpha 线、0.1.2-rc.1,以及 0.1.6-alpha.2(其 Session.append 只能盖章 surface intent,无法盖章 ignorable 信封,该字段仅保留用于存量日志读取兼容)——完全不追加,因此语音在这些宿主线上永远不会污染会话日志。跳过不再无声:宿主按会话保留「已追加/已跳过」计数,可由 talk/latest(sessionId) 读回;客户端会话级播放列表保持为空,speak 工具结果仍是可重建的审计痕迹。
  • 失败响亮 —— 非法引擎、越界数值、缺模型/端点的引擎配置在挂载时即报错。

已知限制

  • 浏览器支持:Web Speech 与 MediaRecorder 均特性检测;不可用时麦克风按钮自动禁用,配置了宿主引擎(FunASR/whisper.cpp)仍可转写。
  • 本地引擎需自行安装:edge-tts、piper、whisper.cpp 可执行文件与模型需单独安装。
  • 录音格式:浏览器按其原生 MediaRecorder 编解码器录音;whisper.cpp 可能要求 WAV 录音配置或服务端转换。
  • 设置重载生效:设置页签追加到 profile patch;重载 profile(或重启 Web 应用)后生效。
  • 无该词汇表的宿主上实时播放历史为空:在 0.1.1-rc.2、0.1.2-alpha 线、0.1.2-rc.1 与 0.1.6-alpha.2 上,宿主词汇表不认识 dsh-talk/speech,因此门不写入任何内容,客户端的会话级播放列表保持为空;talk/latest(sessionId) 仍返回最新一条朗读与「已跳过」计数。朗读本身、麦克风、设置页签与工具均不受影响。
  • dsh-talk ≤ 0.2.1 写下的存量日志可能需要在冷加载前修复:版本 0.2.1 及更早会追加未标记的 dsh-talk/speech 事件。在 0.1.0-rc.7 及更新的宿主上,日志已含这些事件的会话,其下一次冷加载会以 SessionFormatUnsupportedError 失败。修复:停止宿主,备份该会话的 .jsonl 日志,为每一行 "type" 为 "dsh-talk/speech" 的 JSON 记录加上顶层成员 "ignorable":true(例如在起始的 { 之后插入 "ignorable":true,),然后重新打开会话。其余内容不变,不会丢失任何数据;本版本的新追加永远不会产生未标记事件。

开发

pnpm install        # node ^22.19 || >=24
pnpm run typecheck  # tsc:src + tests,对照本地 harness checkout
pnpm run typecheck:ci  # tsc:对照已发布的 0.1.7-alpha.2 类型(无 paths)
pnpm test           # vitest:86 个测试、15 个套件
pnpm run build      # tsc 声明 + tsdown bundle(lib/)
pnpm run verify:self-contained  # 依赖声明全部来自 registry
pnpm run verify:artifacts       # 构建产物 ESM 面 + client ModuleLoader 握手
pnpm pack           # 发布用 tarball

与其他 DSH 插件的互操作

已对照 DSH 0.2.0-rc.2(本 README 面向的运行时)与 2026-10-05 实测的高星插件集验证。

本插件不干扰其他插件,包括广泛安装的高星插件:

  • 无工具名冲突。 所有工具都带命名空间,不占用任何已被内置工具或其他插件持有的裸名。
  • 无服务键冲突。 只提供 talk;该键既不是内置 seam,也没有被任何已调研的高星插件提供。
  • 无 slot 冲突。 不注册客户端 slot key,因此不参与 shadows-shipped-ui 座位争抢。
  • 无 HTTP 路由冲突。 不注册任何 webServer 前缀。
  • 无 patch 层冲突。 组合包 patch 只 insert 自己那一行,从不覆写内置行的 config。
  • 无全局改写。 不改原型、不改写 process.env、不替换全局 fetch dispatcher。

共享事件监听器在构造上就不互相干扰。 它用 ctx.on() 监听顺序敏感事件 approval/request —— Cordis 的广播语义:每个监听器都会运行,任何一个都无法饿死其他监听器。此处每个监听器都通过 next() 委托,因此链条绝不会被短路;改写作用在 next() 产出的值上,而不是用它顶替返回:

静态证据:dsh-plugin-doctor 的 K10–K13 在本仓全部为 pass。

Topics

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

Contributors

  • @PerryLink —— 创建者与维护者:朗读管线、语音引擎、麦克风录音、事件播报、投影单元与五语文档。

PerryLink DSH Plugin Family

本项目是 PerryLink 维护的 DeepSeek Harness 插件家族成员:34 个活跃维护,名册共 42 个,其中 5 个已冻结、3 个已退役——每一个都在下表保留自己的行,原因见「状态」列。如果它能帮到你,其他的也会:

Plugin一句话状态
dsh-auto-reviewSecond-model auto-review on the approval chain, fail-closed by default
dsh-autotierAutomatic strong/cheap model-tier routing with deterministic risk guards and a /tier command
dsh-background-agentsDurable background child agents with a Web UI sidebar, messaging and interrupt🚫 已退役 — 见上方说明
dsh-budgetCost governance for DeepSeek Harness: budgets, carbon, and latency in one panel.🧊 已冻结 — 见仓库 README
dsh-catalogDSH Desktop Market standard catalog source for the PerryLink family
dsh-cert-mcpRead-only MCP server exposing the certification registry: grades, snapshots and five-dimension evidence
dsh-checkpoint-rewindClaude Code /rewind-equivalent: snapshots, session forks, one-shot restore
dsh-claude-moveMigrate Claude Code sessions, memory, skills and CLAUDE.md into DSH🧊 已冻结 — 见仓库 README
dsh-clickCross-platform native desktop control for DeepSeek Harness — Windows first.
dsh-composer-historyTerminal-style input history for the web composer: arrows, Ctrl+R search
dsh-data-qualityDataset quality checks and citation cross-checks (the optional numeric bridge consumed here)
dsh-defendPrompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness.🧊 已冻结 — 见仓库 README
dsh-doublecheckEngineering-discipline guard: requirements grill, test gates, adversary review
dsh-drawUnified static-image generation routing for DeepSeek Harness.🧊 已冻结 — 见仓库 README
dsh-fastRead-only performance diagnostics for DeepSeek Harness.
dsh-fund-researchDeterministic research reports for Chinese public mutual funds
dsh-githubGitHub PR/issues integration for DSH, every write gated by approval
dsh-industry-researchIndustry research orchestration that seals its deliverables through this plugin's ctx.researchReport.assemble
dsh-layaLaya typed decisions (noul/choice/score) as a first-class Cordis service and model-visible tools
dsh-libraryLocal document knowledge base for DeepSeek Harness.
dsh-local-aiLocal-model (Ollama) integration for DeepSeek Harness.
dsh-lsp-actionsLSP diagnostics, formatting, completion, code actions and rename over language servers
dsh-maskPII masking middleware: anonymize at the model boundary, restore at the display layer
dsh-mcp-panelRead-only MCP runtime panel: /mcp command + Settings tab with status, tools and errors
dsh-mementoApproval-gated cross-session memory: ctx.memory seam + SQLite + memory tool
dsh-observeOpenTelemetry and Langfuse observability exporter for DeepSeek Harness.
dsh-output-stylesClaude Code outputStyles-equivalent runtime style switching
dsh-permission-rulesClaude Code-style declarative allow/deny/ask permission rules with audit
dsh-plugin-certificationCommunity certification registry with repro-checkable grades and badges
dsh-plugin-doctorZero-dependency static + sandbox smoke detector for DSH plugins
dsh-plugin-guidePlugin-development knowledge base as an on-demand agent skill
dsh-plugin-kitShared zero-runtime-dependency toolkit for the PerryLink DSH plugins
dsh-plugin-upgradeOne-package, one-corridor-index plugin upgrade skill: routes a repository to the matching closed corridor card
dsh-plugin-upgrade-015Merged 0.1.3-alpha.1 → 0.1.5-rc.1 upgrade corridor card plus a zero-dependency seam scanner🚫 已退役 —— 走廊由 dsh-plugin-upgrade 承担
dsh-reachMulti-channel approval/question bridge: WeChat/Telegram/Feishu, session console🧊 已冻结 — 见仓库 README
dsh-research-reportVerifiable research-report engine: content-addressed evidence ledger and sealed versions
dsh-scoreMulti-dimensional quality scoring for DeepSeek Harness plugins.
dsh-session-pinPin sessions in the Web sidebar with durable ordering🚫 已退役 — 见上方说明
dsh-session-syncCross-device session sync for DeepSeek Harness — a dedicated git mirror of your session store.
dsh-skill-pack-securitySecurity-audit skill pack: secret scan, dependency and supply-chain review
dsh-talkVoice-first session loop for DeepSeek Harness: talk to it, hear it answer.
dsh-team-roomsCross-session team rooms: shared message bus, task board and timeline🚫 已退役 — 见上方说明
dsh-test-driveIsolated install-and-smoke test drives for DeepSeek Harness plugins.
dsh-ticktickTickTick/Dida365 task bridge: session-header panel + 11 tools
dsh-translateVendor parameter translation and deterministic JSON repair for DeepSeek Harness.

License

Apache License 2.0 © 2026 dsh-talk contributors

从 DSH Desktop 市场安装

所有 PerryLink 插件均可在 DSH Desktop 内置市场中浏览:市场 → 来源 → 添加来源 → 粘贴 https://perrylink-dsh-catalog.perrylink.workers.dev/catalog-source.json → 选中。安装仍需通过市场的 npm 身份校验与你的确认。

版本历史

  • 0.3.202026年11月29日 · 254 KB
dsh-talk · SoleAPI Agent 插件 | SoleAPI