Introduction¶
After integrating a WeChat persona into DeepSeek Harness (DSH), a common requirement is to have the robot reply with voice messages rather than just text. While the community already has dsh-wechatagent-voice-plugin, its send_voice function uses default voice tones. If you want to specify a male voice, a dialect, or a character-oriented RVC tone in a conversation, you need a separate layer of “voice pack” capability. Below is an introduction to dsh-voicepack-plugin, released by maintainer banzhangdeerfenzhiyi: designed for DSH WeChat personas, it includes 15 built-in Edge neural tones and an optional RVC layer. It routes through the same TTS → SILK channel as the local WeChatAgent hook to emit native WeChat voice messages.
What is it¶
dsh-voicepack-plugin is the DSH plugin repository banzhangdeerfenzhiyi/dsh-voicepack-plugin, npm package name dsh-voicepack-plugin, current version 0.1.0, license MIT. It is categorized as “Fun Costumes” in the community directory SkillHub.
The plugin does not replace dsh-wechatagent-voice-plugin: the latter’s send_voice still uses default voice tones; this plugin selects specified tones via send_voice_pack in scenarios such as the user asking to “say in a male voice,” “change voice,” “read with Yunxi,” or “say with Dafeiyu.” Both plugins share the Edge TTS → SILK → local hook /SendVoiceMsg channel.
Core Features¶
Voice Tones and Synthesis Pipeline¶
- Edge Neural Tones (15): Documented as 9 female / 6 male voices, including Northeast dialect, Shaanxi dialect, Cantonese, Taiwanese accent, etc.; all have been tested and confirmed usable on the Edge TTS service.
- Optional RVC Tone Layer: Presets include Dafeiyu (male voice), Paimon (female voice), and Ying (female voice); it automatically falls back to pure Edge tones if the model is missing, without forcing an error.
- Processing Flow:
speech.mjscompletes Edge TTS → optional RVC → PCM → SILK;text.mjscleans markdown and segments the text to facilitate reading.
Public Tools¶
voice_pack_list: Lists the voice pack directory, allowing filtering bygender(female/male/all),locale, andtag; returns the Chinese name, ID, gender, tags, and RVC presets.send_voice_pack: Sends a voice message to the WeChat chat bound to the current DSH session. Main parameters includetext(suggested ≤120 characters),voice(e.g.,Yunxi/Xiaoyi/Northeast Dialector the full ID),rvc,rate/pitch, andmaxChars.
The entry point index.mjs is responsible for registering the above tools and injecting rules and strategies; voice tone parsing is concentrated in src/voices.mjs, and session-to-WeChat mapping is in src/wechat.mjs.
Installation and Activation¶
Environment requirements (excerpted from README): Windows + DSH Desktop Edition; WeChatAgent local hook (default http://127.0.0.1:30001) and workspace (containing state/accounts, config/wechatagent.json); Node ≥ 22.13. RVC (Applio + venv312 + models) is optional; if missing, it only uses Edge tones.
Method A: Add GitHub URL via DSH Interface (Recommended)¶
DSH Desktop Edition → Plugins → Add Plugin, enter:
https://github.com/banzhangdeerfenzhiyi/dsh-voicepack-plugin
DSH pulls the repository and reads package.json’s dsh.bundle, loading according to cordis.patch.yml. After installation, restart DeepSeek Harness.
Method B: Command Line (Equivalent to A)¶
dsh plugin --profile desktop add https://github.com/banzhangdeerfenzhiyi/dsh-voicepack-plugin
Method C: npm Package Name¶
dsh plugin --profile desktop add dsh-voicepack-plugin
If prompted to allow install scripts when installing dependencies: msedge-tts’s preinstall is only to force pnpm’s check, simply follow the prompt “Allow these scripts and retry”. China mainland npm mirrors may have sync delays, you can switch to the official source https://registry.npmjs.org.
Local Development and Inspection (Optional)¶
Inside the repository, you can execute:
npm install
node tools/install.mjs
Supports parameters such as --target, --workspace, --rvc-root, --remove, --profile; tools/list-voices.mjs previews the directory, and tools/test-voice.mjs allows testing synthesis directly without DSH (you can add --send).
The plugin runs under DSH process permissions; please review the source code and MIT license before installation to ensure consistency with your local WeChat hook configuration.
Typical Usage¶
Command Line Voice Test¶
After installing dependencies, you can verify synthesis and voice names using the examples in the README:
node tools/list-voices.mjs
node tools/test-voice.mjs --text "你好呀" --voice 云希
In WeChat Conversations¶
When working with the WeChat persona toolchain, a common order is: first complete WeChatAgent and DSH integration via wechat-agent-bundle; then use dsh-wechat-deploy-plugin’s wechat_deploy_status to confirm the Hook ready. Afterwards, natural language can be used in the chat to trigger voice changes, for example, “say goodnight in a male voice” — this is handled by the harness calling this plugin’s send_voice_pack instead of the default send_voice.
send_voice_pack example parameter meanings:
| Parameter | Description |
|---|---|
text |
Spoken content to be read |
voice |
e.g., Yunxi, Xiaoyi, Cantonese Male Voice, etc. |
rvc |
Optional Dafeiyu / Paimon / Ying |
rate / pitch |
e.g., +10% / +40Hz |
Voice Tones Overview¶
The Edge tones listed in the README include:
- Female: Xiaoxiao, Xiaoyi (default), Xiaoxuan
- Male: Yunxi, Yunjian, Yunyang, Yunxia
- Dialects: Xiaobei (Northeast), Xiaoni (Shaanxi)
- Cantonese: Xiaoman, Xiaojia, Yunlong (Male); Taiwanese: Xiaozhen, Xiaoyu, Yunzhe (Male)
- RVC: Paimon (Female, pitch -5), Dafeiyu (Male), Ying (Female)
Some Azure-exclusive tones are not included in the Edge interface and require separate integration with Azure TTS.
Troubleshooting and Notes¶
| Phenomenon | Solution |
|---|---|
| WeChatAgent workspace not found | Configure workspace or environment variable WECHATAGENT_WORKSPACE |
| No voice sent | Check ~/.dsh/voicepack/voicepack.log; confirm the hook is running and the session is bound to WeChat |
| RVC not effective | Check logs for rvc=; verify rvcRoot and model files |
| Edge TTS failure | Requires internet access to the Edge TTS service |
Tones come from the Microsoft Edge TTS service (a free unofficial interface); RVC models are third-party assets, please ensure you have the right to use them. Voice is for personal entertainment only; do not use it for impersonation, fraud, or infringement.
Conclusion¶
dsh-voicepack-plugin adds 15 switchable Edge tones and 3 RVC presets to DSH WeChat personas without affecting the default send_voice, making it suitable for local WeChat agent scenarios that require male voices, dialects, or character tones. Directory and source code: