Select English text in the conversation or the sidebar file preview to translate and read aloud in place: single words get a Youdao or Bing dictionary entry with UK/US IPA, senses and audio, while sentences use machine translation with 8 Microsoft Edge neural US/UK voices, 0.75x slow playback and silent audio preloading.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:JasperXXX/dsh-selection-translate-neural
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
This plugin publishes its README in Chinese only.
在 DeepSeek Harness 的对话正文和右侧文件预览里,选中一段英文即可就地翻译与真人点读:
- 单词 / 短语查词典:显示英/美音标、按词性分组的中文释义、网络释义,可一键播放有道词典真人发音或 0.75x 慢速跟读。
- 长句 / 段落机器翻译 + 微软 Edge 神经网络真人朗读:支持 Bing、Google(匿名免账号)及 DeepSeek Flash 翻译;底部内置 8 款纯正英/美神经网络真人音色(
Ava、Andrew、Emma、Brian、Jenny、Guy、Sonia、Ryan),支持 1.0x 原速朗读 与 0.75x 慢速跟读。 - 零外部依赖、静默预加载:纯 Node.js 原生 WebSocket 直连合成(无需安装 Python 或任何命令行工具),划词瞬间后台静默预加载音频并做本地缓存,点击
🔊 朗读即点即响。
本项目基于 Sunshine334419520/smart-selection-translate(MIT License)增强开发,解决了原版长句朗读回退浏览器机械合成音的问题,新增纯 Node.js 微软 Edge 神经网络真人语音合成(8 款英美音色)、0.75x 慢速跟读、划词静默预加载与单词音源切换。
内置 8 款英/美真人音色
| 音色 ID | 地区与性别 | 风格特点 |
|---|---|---|
en-US-AvaMultilingualNeural |
🇺🇸 美式女声 | 自然亲切、连读地道(默认推荐) |
en-US-AndrewMultilingualNeural |
🇺🇸 美式男声 | 磁性沉稳、播客旁白风 |
en-US-EmmaMultilingualNeural |
🇺🇸 美式女声 | 清亮知性、咬字极清晰(适合精听) |
en-US-BrianMultilingualNeural |
🇺🇸 美式男声 | 年轻阳光、轻快日常口语 |
en-US-JennyNeural |
🇺🇸 美式女声 | 温柔柔和、经典美音 |
en-US-GuyNeural |
🇺🇸 美式男声 | 稳重清晰、新闻播音风 |
en-GB-SoniaNeural |
🇬🇧 英式女声 | 优雅纯正、BBC 伦敦腔 |
en-GB-RyanNeural |
🇬🇧 英式男声 | 绅士儒雅、剑桥英音 |
安装
命令行安装
dsh plugin --profile web add github:JasperXXX/dsh-selection-translate-neural
(桌面端可将 --profile web 替换为 --profile desktop)
本地目录安装
在 DeepSeek Harness 的 插件(Plugins)→ 添加插件 中填入本目录绝对路径即可。
设置项
打开 设置 → 智能划词翻译:
| 选项 | 默认值 | 说明 |
|---|---|---|
| 启用划词翻译 | 开 | 选中英文松手即触发;双击单词等于选中该词 |
| 触发方式 | 选中即翻译 | 可切换为「选中后显示按钮」,点击按钮再发起翻译 |
| 真人朗读音色 | 🇺🇸 Ava | 8 款微软 Edge 神经网络英/美真人音色可选,右侧带 🔊 试听音色 按钮;也可在划词弹窗底部实时切换 |
| 单词音标点击音源 | 有道词典真人原声 | 点击单词卡片上的「英/美」音标时,可选「有道词典真人原声」或「微软 Edge 神经音色」 |
| 单词查词典 | 开 | 单个词(或 2~3 词短语)优先查词典;关闭则统一走机器翻译 |
| 词典源 | 有道词典 | 有道 / 必应 / 自动(先查有道,未收录再查必应) |
| 机器翻译引擎 | Bing | Bing / Google(免账号)或 DeepSeek Flash(走当前会话记账) |
| 译文语言 | 简体中文 | 简中 / 繁中 / English / 日本語 / 한국어 |
| 只翻英文 | 开 | 选区中英文字符少于中日韩字符时自动跳过 |
许可证
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10703
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10703
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8557
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7523
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5405
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1091
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.