Introduction¶
In agent development, the text content of assistant replies often requires manual review or secondary confirmation. In the DeepSeek Harness (DSH) conversation interface, each completed assistant reply only offers actions such as copy and feedback by default, with no built-in ability to listen to the reply aloud. The zznn11/dsh-voice-read plugin adds a play button to the action bar of each assistant reply. Clicking it reads the reply aloud using DeepSeek’s official TTS service.
What Is This¶
This is a DeepSeek Harness plugin maintained by Xia Chanjun. It adds a play button to each completed assistant reply in the DSH conversation interface. Clicking it reads the reply aloud using DeepSeek’s official TTS service.
Core Features¶
The plugin adds a play button to the action bar of each completed assistant reply in the DSH conversation interface. When the button is clicked, the host-side precise routing calls the DeepSeek official TTS API to convert the corresponding text into audio and returns it to the frontend. The browser side then presents the result through button state changes and audio playback.
Installation & Enablement¶
Install from the Plugins page (recommended):
- Open DSH and navigate to the Plugins page in the left sidebar.
- Click Add plugin, select the plugin directory (for local development) or enter the package name / repository URL (for published plugins).
- After installation, a
▶button will appear on the action bar of each assistant reply in the conversation.
Install from a source link (for developers):
- Add the dependency in the profile’s
package.json:
"dependencies": {
"dsh-voice-read": "link:<plugin directory>"
},
"dsh": {
"profile": {
"bundles": [/* existing entries */, "dsh-voice-read"]
}
}
On Windows, use forward slashes after link:, e.g., link:C:/work/dsh-voice-read.
- Install dependencies in the profile directory:
pnpm install --dir <profile directory>
- Restart DSH.
The plugin writes the profile’s dependencies and bundle selection internally. A DSH restart is required after installation; simply refreshing the page is usually not sufficient (the host side needs to reload).
Typical Usage¶
- Write your DeepSeek API key into
~/.dsh/voice/api-key.txt(a single line of plain text, starting withsk-, no quotes, no extra blank lines). - After installing the plugin, wait for the assistant’s reply to complete in the conversation.
- Click the
▶button on the reply’s action bar. The browser will play the audio for that reply.
Configuration¶
The plugin depends on two configuration items: voiceId and apiKeyPath.
| Setting | Default | Description |
|---|---|---|
voiceId |
tide |
Voice: tide (male), stella (female). Any other value falls back to tide |
apiKeyPath |
~/.dsh/voice/api-key.txt |
Path to the API key file (single line of plain text). Supports paths starting with ~, $HOME, or ${HOME} |
Env var DEEPSEEK_API_KEY |
N/A | Only used as a fallback when the key file is unreadable or empty. When both are present, the file takes precedence |
Switching the voice requires modifying the cordis.patch.yml file and restarting DSH:
- Locate the plugin’s patch file:
<profile directory>/node_modules/dsh-voice-read/cordis.patch.yml. If installed vialink:, this path is a symlink and the actual file is thecordis.patch.ymlin the plugin directory. - Change
voiceId: tideunderconfigtovoiceId: stella(or vice versa):
- insert:
- id: dsh-voice-read
name: dsh-voice-read
config:
voiceId: stella
apiKeyPath: '~/.dsh/voice/api-key.txt'
- Save and restart DSH. The
▶button on new replies will use the new voice.
If you don’t want to modify files inside the plugin package (they will be overwritten during upgrades): add an override entry with the same id but without insert in the profile’s own cordis.patch.yml. It directly targets the existing entry. Since config is a full replacement (not a deep merge), both fields must be specified in full:
- id: dsh-voice-read
name: dsh-voice-read
config:
voiceId: stella
apiKeyPath: '~/.dsh/voice/api-key.txt'
Use Cases & Notes¶
This plugin is suitable for scenarios where you need to quickly listen to assistant replies during a conversation, such as content moderation or voice-assisted reading. The plugin runs with the privileges of the current DSH process. Review the source code and license before installing.
The plugin has the following characteristics:
- It only reads the specific reply you click — no auto-reading, no reading of streaming replies, no reading of code.
- It only reads visible text — collapsed thinking processes, content inside
<details>, and code blocks are not read. - A single click is limited to 2,000 characters, with a cost of approximately 0.3 CNY per request (DeepSeek TTS is billed at 1.5 CNY / 10,000 characters).
- Audio for the same text is cached in page memory (up to 20 entries, FIFO). Repeated playback does not trigger new requests and incurs no additional cost.
- Playback automatically resets to
▶when finished. Component unmounting stops playback and revokes the object URL. - Button states:
▶is clickable,…means synthesizing (clicking again has no effect),■means playing (clicking again stops),⚠means error (hover to see the status code and error body).
Cost¶
DeepSeek TTS is billed at 1.5 CNY / 10,000 characters. Audio for the same text is cached in page memory (up to 20 entries, FIFO). Repeated playback does not trigger new requests and incurs no additional cost.
Ecosystem Context¶
The DSH philosophy is “everything is a plugin.” The community directory is an independent site and has no official affiliation with DeepSeek / High-Flyer.
In Short¶
The plugin provides DSH users with a convenient voice-reading capability, ideal for scenarios where quick listening to assistant replies is needed. Directory page: https://www.skillhub.cn/plugins/zznn11/dsh-voice-read, GitHub: https://github.com/zznn11/dsh-voice-read