AI audio generation for the DeepSeek Harness web GUI — multi-vendor TTS, music, sound effects and voice design with a sidebar panel, model comparison, resource library and Agent tools.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-audiogen
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:shimingming520/dsh-audiogen
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
AI audio generation for DeepSeek Harness (DSH) — turn your DSH web GUI into an audio studio: text-to-speech, music, sound effects and voice design, from the sidebar panel or straight from the Agent.

✨ Features
- Four generation modes: text-to-speech, music, sound effects, and voice design
- Multi-vendor channels in one place: OpenAI-compatible TTS, MiniMax, ElevenLabs, Stability AI, or any custom OpenAI-compatible / generic POST endpoint
- Per-channel model & voice catalogs with one-click discovery, display aliases, capability categories, and per-model advanced fields (duration, seed, steps, cfg_scale, loop, prompt influence, and ElevenLabs SFX output format split into format/sample rate/bitrate, combined host-side into the single
output_format, …) - Model comparison: run the same prompt across 2–4 models at once with per-model parameter overrides — results are grouped side by side
- Prompt enhancement: rewrite a rough idea into a ready-to-generate description with an LLM (pick any model from Settings → Models; falls back to the agent default model)
- History with one-click restore: prompt, config, model set and the original audio come back into the panel — no regeneration, no extra cost
- Resource library: auto-save generated audio (or opt in per run), organized by type — voices / music / SFX / TTS — with search, tags, rename, category moves, and full provenance (channel, model, voice id, prompt, params snapshot). Reuse a voice or music bed instead of regenerating
- Agent tools:
generate_audioandsearch_audio_library,manage_audio_voices(vendor voice browsing/deletion + prompt-based voice recommendation + role voice casting), plus bundled session skills — the Agent can generate and find audio on demand - Role voice casting: assign a primary voice (+ backups) to each character of a novel/game —
manage_audio_voicesaction=casttakes character profiles (JSON array/object or a text description structured first) and applies deterministic hard filters (gender/age/use_case strict; accent is a preference relaxed only when the strict pool is empty) per character; the Agent picks voices globally (no primary reuse across lead/major roles) andaction=save_castvalidates membership, auto-fills backups, flags reuse and persists the plan to~/.dsh/dsh-audiogen/cast-selections.json; then TTS with the chosenvoice_id(or design a custom voice first viagenerate_audio(mode=voice_design)) - Panel voice management: a «音色» entry in the studio's left mode row (next to TTS/music/SFX/voice-design) — browse/filter vendor voices (language/keyword/source + official ElevenLabs shared-voice filters), ask the agent default model to recommend voices for a natural-language requirement (e.g. «清亮甜美的少女音»), preview, delete account-owned voices (confirmed) and backfill the chosen
voice_idinto the TTS form; every AI recommendation is recorded automatically (last 50, shared by panel and Agent) so you can revisit requirements/channels/reasons and reuse a voice later - Keys stay local: API keys live in the local DSH settings document and generation is proxied by the local host; the browser and the Agent never touch plaintext credentials
📸 Screenshots
| Generation panel | Resource library |
|---|---|
![]() |
![]() |
| Library — full provenance drawer | Channels settings |
|---|---|
![]() |
![]() |
| Channel editor (model catalog & auto capabilities) | LLM models (Settings → Models) |
|---|---|
![]() |
![]() |
📦 Installation
The plugin is published on npm. DSH host (Node ≥ 20) required.
dsh plugin --profile web add dsh-audiogen
Local development install:
dsh plugin --profile web add /path/to/dsh-audiogen
Restart dsh web after install — the sidebar will show the AI Audio entry.
🚀 Quick start
- Open Settings → Plugins → AI Audio
- Add a channel: pick a preset provider (+ Add provider) or a custom endpoint (+ Add custom provider)
- Fill in the API URL, API key, and the model/voice catalog (use Fetch available models to import them)
- Save, then open the AI Audio sidebar panel:
- choose a mode (Speech / Music / Sound effects / Voice design)
- type your text or prompt (optional: ✨ Enhance prompt)
- pick a model — or tick Model comparison for 2–4 models at once
- press Start generation and play the results, download them, or add them to the resource library
🎛 Modes supported by each vendor
| Mode | MiniMax | ElevenLabs | Stability AI | OpenAI-compatible / custom |
|---|---|---|---|---|
| TTS | ✅ (8 voices) | ✅ (voices + streams) | — | ✅ |
| Music | ✅ (music-3.0 / music-2.6 / music-cover) |
✅ (music_v2) |
✅ (stable-audio-*) |
✅ (generic POST) |
| Sound effects | — | ✅ (eleven_text_to_sound_v2, loop / prompt influence / output format as codec+sample rate+bitrate → output_format) |
✅ (stable-audio-* — same text-to-audio protocol; auto-detected in both Music and SFX) |
✅ (generic POST) |
| Voice design | ✅ (/v1/voice_design) |
✅ (/v1/text-to-voice/design) |
— | — |
🤖 Agent usage
| Tool | Purpose |
|---|---|
generate_audio |
Submit a TTS / music / SFX / voice-design task; waits for completion and returns same-origin audio URLs. Optional enhance_prompt, save_to_library, per-vendor params. |
manage_audio_voices |
Browse/filter the vendor voice libraries (MiniMax, ElevenLabs) with language/keyword/source filters; recommend top-k voices for a natural-language requirement (action=recommend, uses the agent default model, ids validated against the pool); role casting (action=cast prepares per-character filtered candidate pools from character profiles; action=save_cast validates + persists the plan); delete account-owned voices (official/shared/system voices are read-only and refused). Then use the returned voice_id with generate_audio (mode=tts). |
search_audio_library |
Search the local resource library (type / category / keyword) and reuse an existing voice, music bed or effect. |
Typical session commands (skills bundled with the plugin):
/audio:tts Read this sentence with a warm voice
/audio:music Generate a 30-second lo-fi background track
/audio:sfx Create a sci-fi UI cue
/audio:design Craft a warm retro synth voice
🔐 Security & data notes
- API keys are stored in the local DSH settings document; requests are proxied by the local host (
/api/dsh-audiogen/*, loopback-only routes) - Generation consumes your upstream provider quota; audio content is produced by the upstream model
- History & library persist under
~/.dsh/dsh-audiogen/ - Prompt enhancement calls the LLM model you choose (default: agent default model) — no extra API key
🛠 Development
pnpm install
pnpm run typecheck
pnpm run build # outputs lib/ (host + client bundles)
📄 License
Links
More in this category
Yuuyuko-uu/dsh-tts-bridge★ 269
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★ 136
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.
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★ 70
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.
cloudoyx/any-audio★ 68
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.
1624318455/dsh-plugin-tts★ 65
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.