Learn songs inside DSH from Bilibili or local audio and sing them in her own voice.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-xiaoman-sing
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:xiaomanla2026/dsh-xiaoman-sing
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.
🐟 小满的歌 · dsh-xiaoman-sing
DeepSeek Harness 的唱歌插件:跟她说想听什么,她去学,在你自己的显卡上唱给你听。
这是 luckui/dsh-singinglab(大肥鱼唱歌实验室,MIT)的 fork。
播放器、修音页、歌库、自动定调、自动修音高这些原来的东西都保留;换掉的是学歌和换声这条链路——从「插件自带 RVC 环境 + 货架模型」改成「本机 MSST 分离 + becruily 拆主唱 + anvuew 去混响 + Qwen3-ASR 听词取官方词 + DDSP-SVC 6.3 换声」。装完插件点一次「一键准备」,分离模型、听词组件、换声桥、换声引擎都会自动装好;想训自己的音色,插件里有训练页。
改的动机很实际:原版把模型路径写死在作者机器上,换一台机器就跑不动;而本机已经有一整套更快、更干净的分离与换声模型。
🎤 能干什么
- 一句话点歌:「我想听晴天」。她去 B 站找(或直接用你给的无损文件),学会就放。
- 学歌全在本地:分离、拆主唱、去混响、认歌取词、换声、定调,都在你自己的显卡上跑,不上传音频。
- 断网也能学:歌库页点「本地文件」,填一个音频路径(wav/mp3/flac/m4a)就能学,分离、换声、听词全在本机跑,不联网也能出歌。
- 歌词准:先用 Qwen3-ASR(没装就自动回落 whisper)听出这首歌在唱什么,认出来之后取官方歌词,再把每一行对齐到时间轴上。
- 自动定调:按这首歌的最低音和最高音,算出她唱得了的调。
- 自动修音高:查出被和声拽低一个八度的地方,自动修好。
- 装完就能用:一键准备自动装听词组件(Qwen3-ASR + 对时间模型)、换声桥、换声引擎,不用自己找模型、填路径。
- 设置页很安静:一切就绪后只留「她的声音」;训练音色、重新检查这些收在训练卡和「高级设置」里,要用才展开。
- 链路随便改:步骤库 10 步,可以加步、减步、换做法,满意的链路能存下来复用(设置里或学歌页都能改)。
- QQ 点歌:配 dsh-xiaoman-sing-qq,群里发「唱 晴天」她自己学会、唱完发回来。
- 训练自己的音色:给一段干声,插件里直接训(N 卡/A 卡都能跑,A 卡要 ROCm 版 torch),训完自动成为「她的声音」。
- 修音页:频谱上拖音符改音高,逐音生效;也可以直接跟她说「第二段副歌不对」。
- 会动的播放器:歌词映在窗玻璃上,海面跟着音乐闪光,夜里会下雨。
📷 截图
| 歌库 | 播放器(歌词跟着唱) |
|---|---|
![]() |
![]() |
「本地文件」入口(断网也能学,填个路径就行):
配套的 QQ 点歌插件(可选,dsh-xiaoman-sing-qq):
🔀 和原版的区别
| 原版 dsh-singinglab | 这个 fork(dsh-xiaoman-sing) | |
|---|---|---|
| 包名 / 工具 | dsh-singinglab / singinglab_* |
dsh-xiaoman-sing / music_* |
| 人声分离 | 插件自带 Applio / RVC 环境 | 插件自带 MSST 推理代码 + logic_roformer 六轨(权重一键准备自动下) |
| 拆主唱 | RVC 货架模型 | becruily mel_band_roformer |
| 去混响 | 无 / 货架 | anvuew mel_band_roformer(fp32 权重) |
| 认歌取词 | whisper 对齐 | Qwen3-ASR 1.7B 听词 + ForcedAligner 对时间(whisper 兜底),识别出歌名取官方 LRC |
| 换声 | RVC .pth |
官方 HTTP 桥 + DDSP-SVC 6.3 引擎(约 770MB,一键准备自动装) |
| 修音页 | RVC 逐音音高 | 同样逐音音高,但走 SVC 桥,不需要 RVC 权重 |
| 模型路径 | 写死作者机器 | 设置里 paths 十六项可填(含听词三件套),缺了报人话 |
| 本地文件学歌 | 仅 B 站 | 本地 wav/mp3/flac/m4a 也能学 |
| 训练音色 | 无 | 插件内直接训(官方 DDSP-SVC 6.3,N 卡/A 卡都能跑) |
| 链路自定义 | 固定链路 | 步骤库 10 步,可加步/减步/换做法、存链路 |
🚀 安装
请先读 INSTALL.md:插件包本身只有代码(2.7MB);分离模型(约 3.3GB)、听词组件(约 3.6GB)、换声引擎(约 770MB)由「一键准备」自动下,只有音色模型要你自己准备(可以用训练页训)。
git clone https://github.com/xiaomanla2026/dsh-xiaoman-sing.git dsh-xiaoman-sing
cd dsh-xiaoman-sing
npm install
npm run build # 产出 lib/index.js、lib/agent.js、lib/client.js
然后在 DSH 的 profile(~/.dsh/profiles/desktop)里登记:
// package.json
"dependencies": { "dsh-xiaoman-sing": "link:F:/path/to/dsh-sing-xiaoman" },
"dsh": { "profile": { "bundles": [ "…", "dsh-xiaoman-sing" ] } }
重启 DSH,侧栏出现「小满的歌」。
⚙️ 配置
学歌要用的每一项路径都能在「学歌设置 → 高级设置 → 路径」里填(也可以手改设置文件),不用动代码:
留空的项 = 用默认(「一键准备」已经装好的那些在数据目录里,不用填)。只有想换成自己那份时才填:
{
"paths": {
"msstPython": "",
"msstHome": "",
"msstEntry": "",
"whisperCli": "…/whisper-cli.exe",
"whisperGgml": "…/ggml-large-v3.bin",
"asrCli": "…/audiocpp_cli.exe",
"asrModel": "…/qwen3-asr-1.7b-q8_0.gguf",
"asrAligner": "…/qwen3-forced-aligner-0.6b-q8_0.gguf",
"logicCfg": "…/configs/logic_pro_config_v1.yaml",
"logicCkpt": "…/pretrain/logic_roformer.pt",
"karaCfg": "…/configs/config_karaoke_becruily.yaml",
"karaCkpt": "…/pretrain/mel_band_roformer_karaoke_becruily.ckpt",
"dereverbCfg": "…/configs/dereverb_mel_band_roformer_anvuew.yaml",
"dereverbCkpt": "…/pretrain/dereverb_mel_band_roformer_anvuew_sdr_19.1729.ckpt",
"svcUrl": "http://127.0.0.1:9881"
}
}
msstEntry留空 = 用包里自带的assets/sing/run_msst.py- 环境变量优先:
DSH_SING_HOME(数据目录)、DSH_SING_SVC(换声桥地址)
📁 数据放哪
默认沿用 ~/.dsh/dsh-singinglab/(故意的:这样从原版升级过来,歌库、声音、设置都不丢)。
~/.dsh/dsh-singinglab/
settings.json 设置(含 paths、配方、用哪个声音)
songs/ 学会的歌,每首一个目录:song.json + mix.mp3 + 分轨
voices/ 导入的音色
jobs.json 学歌任务队列与进度
想放到别的盘,设 DSH_SING_HOME。
🧰 工具
装好后 DSH 会多出 12 个工具:
| 工具 | 干什么 |
|---|---|
music_status |
环境齐不齐、歌库几首、正在学哪首 |
music_prepare |
装学歌环境、下模型(后台) |
music_import_voice |
导入音色 |
music_search |
歌库 + B 站搜歌 |
music_learn |
学一首(BV 号或本地文件) |
music_play |
放一首 |
music_control |
暂停 / 继续 / 停 / 上一首 / 下一首 / 跳秒 / 音量 |
music_pitch |
看某首歌的音高报告 |
music_pitch_edit |
改音高(移调、对准、拉直) |
music_pitch_undo |
撤销修音 |
music_train |
用干声训一个音色模型(后台) |
music_train_status |
看训练进度 |
⚠️ 已知限制
- 只在 Windows 上实测过;Linux 要自己改路径写法。
- 换声模型、whisper 权重不在仓库里,见 INSTALL.md;分离权重和听词组件由「一键准备」自动下。
- 修音页要把改动渲染出来,需要 SVC 桥在跑;不修音、只学歌的话没桥也能用(会自动降级成不换声)。
- 分离、换声都吃显存,12GB 以下会比较吃力。
- 没有独立显卡(NVIDIA / AMD)不推荐装:分离一首歌要几个小时。A 卡一键准备会自动装 ROCm 版 torch(2.10.0+rocm7.13,国内镜像 14 秒);2.11+ 的 ROCm 轮子跑 MSST 会炸,别升(INSTALL 1.1)。
- 认歌词默认走 Qwen3-ASR(audio.cpp 的 Vulkan 包,N/A/I 卡通吃);没装听词组件才会回落到
faster-whisper——它底下的 CTranslate2 只支持 NVIDIA 显卡,AMD / Intel 得按 INSTALL.md 第 2.1 节换 whisper.cpp 的 Vulkan 后端。 - 训练音色:A 卡用一键准备装好的 ROCm 版 torch(2.10.0+rocm7.13)就能训。
📄 许可
MIT,见 LICENSE。原项目版权归 luckui 所有,本 fork 保留其版权声明。
原版 README 存档在 README-upstream.md。我们自己的改动记录在 README-xiaoman.md。
Links
More in this category
Yuuyuko-uu/dsh-tts-bridge★ 271
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★ 77
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.
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.
ppy-web/dsh-plugin-xiaomi-mimo-tts★ 75
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.
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.