Real-time local TTS for DeepSeek Harness: voice presets, auto-read, engine setup assistant, a read-aloud button, and a settings panel for the GSV-TTS-Lite engine.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-gsv-tts
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:TaoruiLiu19/dsh-gsv
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
Quick start
Requires DSH 0.2.2-rc.1 or a later 0.2.x release. Install the package into your DSH profile.
dsh plugin --profile web add dsh-gsv-tts
Use --profile desktop if your desktop app uses that profile. Restart DSH, enable dsh-gsv-tts in Plugins, and click 🔊 Read aloud next to an assistant message. Fresh installs start with Edge and need an internet connection.
Try this first. Ask DSH to describe your project in three sentences, then click 🔊. To hear a single sentence, select it and use the button next to the selection.
dsh plugin --profile web add "github:TaoruiLiu19/dsh-gsv"
Git installs build via prepare. If pnpm blocks the build script, add the package it reports to allowBuilds in the profile's pnpm-workspace.yaml and retry. The npm package ships prebuilt files.
Explicit provider choices carry forward. Older configurations with voice presets and no provider setting use GSV after the upgrade.
Three ways to listen
| What you want | How to do it in DSH |
|---|---|
| Hear the important bit | Click 🔊 to hear the visible reply, or select a passage and read just that selection. |
| Listen as DSH writes | In Settings → Voice Settings, enable Auto-read assistant replies and Read visible sentences while the reply streams. Playback can begin once a sentence is complete. Retries and cancellations remove the associated queued audio. |
| Follow along or save it for later | Adjust speed and volume in the floating player. Enable sentence following before the next read to jump between sentences, see highlights, or export SRT subtitles. Generate the full, seekable audio when you want to replay or download it. |
Auto-read is off by default. When enabled, you can choose whether a new reply interrupts current playback. Edge and GSV can highlight the current word or character when alignment data is available.
Choose a voice provider
Switch in Settings → Voice Settings → TTS Mode. Each provider remembers its own default voice.
| Provider | Good for | What it needs |
|---|---|---|
| Edge · Quick | Hearing your first reply with voices such as Xiaoxiao, Yunxi, or Aria | An internet connection |
| GSV-TTS-Lite · Local Pro | Offline synthesis and voice cloning from reference audio you have permission to use | A local engine, model files, and a voice preset |
| DeepSeek · Official | Using the official Stella (stella) and Tide (tide) voices |
A DeepSeek API key, which can come from DSH's credentials store. Billed per character. |
| Custom TTS | Connecting Kokoro-FastAPI or another OpenAI-compatible speech service | Base URL, model, and voice |
Playback and reliability
- Listen while you download. Concurrent playback and downloads of identical speech can share a synthesis job. Each listener can cancel independently. The upstream task stops when the last listener cancels.
- Keep your budget across workspaces. The optional DeepSeek auto-read character limit uses one daily ledger per DSH user directory, shared by its workspaces and profiles. Leave the limit blank for unlimited auto-read or set it to
0to stop new automatic synthesis. Check the provider's bill for actual charges. - Install both voice files together. The Voice Market enforces transfer limits and verifies SHA-256 during download. It publishes the speaker and prompt files after both pass, and preserves the old voice if saving the new configuration fails.
- Stop when the plugin closes. Disabling or hot-reloading the plugin stops playback, cancels pending requests, and removes the player UI. If you enable DSH's optional voice input, recording and transcription pause automatic reading. DSH voice input guide
Make it sound right
Voice Market
Preview voices on the website or inside Voice Settings → Voice Market in GSV mode. Check the source, author, and license before installing. New voices from a remote registry require a second confirmation. Installed voices appear in the local preset list, and you can choose whether to keep the downloaded files when uninstalling. Preview voices online · Submission guide
Pronunciation lexicon
Add one word=reading rule per line in Voice Settings → Pronunciation lexicon. Add provider sections to give acronyms, names, or ambiguous words different readings when needed.
# Global rule
DSH=DeepSeek
[gsv]
GSV=G S V
Provider-specific rules override the global rule for the same word, and longer matches take precedence. Use tts_lexicon_preview to see the rewritten text before synthesizing anything.
- Install Git and Python 3.10+. Switch to GSV and ask the agent to run
tts_setup_engine. After you confirm, the installer places a pinned GSV-TTS-Lite 0.4.7 checkout and an isolated Python environment underinstallDir. - Place models in
<installDir>/models. Existing installs can keep their files in<installDir>/API/models. Engine logs are in<installDir>/logs/engine.log. - Install a preset from the Voice Market or enter a name, target reference audio, prompt audio, and matching prompt text. Use permitted audio files that the engine can access.
- Start the engine in Voice Settings. In Eco mode, use the switch to start it manually. Always-on starts automatically and prewarms the default voice. Once ready, the engine can synthesize offline.
Point gsvModelManifest to a trusted JSON manifest such as {"version":"model release","files":{"s1v3.ckpt":"expected SHA-256"}}. Include the hashes for both default GPT and SoVITS weights. With a manifest configured, the managed launcher verifies the model files before starting.
For a self-managed engine, install the dependencies in your virtual environment, start the service, and set apiUrl in Voice Settings.
python -m pip install -c scripts/gsv-constraints.txt -r scripts/gsv-requirements.txt
python scripts/dsh_stream_api.py -p 9880 --models_dir "/absolute/path/to/models"
- DeepSeek credentials. The default reference is
DEEPSEEK_API_KEY. The plugin looks in DSH's credentials store and can fall back to the environment variable. A key entered in the plugin takes precedence. A DeepSeek account sign-in still needs an API key for TTS. If you setDEEPSEEK_BASE_URL, the plugin uses that endpoint for speech requests. - Custom TTS. For Kokoro-FastAPI, try Base URL
http://127.0.0.1:8880/v1, modelkokoro, and voiceaf_sarah. The plugin accepts 24 kHz PCM or mono 16-bit WAV. For authentication, enter a DSH credential reference. Voice and pause instructions depend on the connected service. - Cache and usage. Audio URLs are served on authenticated, same-origin DSH routes. The instance cache retains files for up to 24 hours, within 200 files and 256 MiB. Voice Settings shows first-audio latency, cache hits, and failures. DeepSeek's usage ledger lives at
gsv-tts/speech-usage.sqlitein the DSH user directory. - Saving settings. Voice Settings can save changes while DSH is running. Profile overrides live in
$DSH_HOME/profiles/<profile>/cordis.patch.yml. The default DSH user directory is~/.dsh. Configuration schema
| Setting | What it controls |
|---|---|
autoPlay · liveReply · interruptOnNew |
Auto-read, sentence playback while a reply streams, and interruption when a new reply arrives. Defaults are false, false, and true. |
engineMode · apiUrl · installDir |
Defaults to Eco mode, http://localhost:9880, and the ./GSV-TTS-Lite installation directory. |
gsvSpeed · timeout |
GSV synthesis speed defaults to 1. The standard request timeout defaults to 30000 milliseconds. |
voiceRegistryUrl |
Defaults to the Voice Market manifest. Leave it blank to load only the bundled manifest. |
Troubleshooting
| Symptom | What to check first |
|---|---|
| The read-aloud button is missing | Check that the plugin is enabled in the active profile and the DSH version meets the requirement. |
| Edge is silent | Check the cloud status in Voice Settings and confirm you are online. Edge can throttle requests. |
| The GSV engine is offline or reports missing models | Ask the agent to run tts_doctor for engine status, model paths, and the most recent failure. |
| DeepSeek reports an invalid credential | Check the saved API key and ask the agent to run tts_doctor with deep=true to verify it. |
| Tool | What it does |
|---|---|
tts_speak · tts_list_voices |
Synthesize text and return an audio URL, or list voices for the current provider. |
tts_doctor · tts_health_check |
Diagnose credentials, engine setup, models, and recent failures, or quickly check the current provider. |
tts_setup_engine |
Install local GSV-TTS-Lite after confirmation. |
tts_voice_registry · tts_voice_install · tts_voice_remove |
Browse, install, or remove market voices. |
tts_lexicon_preview |
Preview how the lexicon rewrites text. |
Contribute
Have a voice to share? The Voice Market accepts submissions. For installation or playback issues, include the DSH version, provider, and steps to reproduce. If you enjoy using the plugin, a GitHub star is welcome. Voice submission guide · Open an issue
pnpm install
pnpm clean
pnpm build
pnpm verify
pnpm test
pnpm test:release
The host plugin is written in TypeScript. Browser source lives in client/, and build output goes to lib/. The release test installs the packed tarball in an isolated profile of real DSH and exercises the client bundle, voice switching, streaming, and downloads with a simulated speech service. Publishing guide
The UI and agent tools share the same synthesis service.
flowchart TD
UI["DSH UI · manual / automatic read-aloud"] --> TTS["Plugin synthesis service"]
Tools["DSH agent · tts_speak"] --> TTS
TTS --> Providers["Edge · local GSV · DeepSeek · custom TTS"]
TTS --> Audio["Authenticated DSH audio URL"]
Changelog · Awesome DSH Plugin · DSH Insights · MIT license · © 2026 TaoruiLiu19
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★ 135
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★ 66
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★ 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.
cloudoyx/any-audio★ 65
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.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.