Introduction¶
DeepSeek Harness (DSH) has built-in voice input and voice assistant capabilities in its conversational interface, but lacks voice output. This means the agent can understand the user’s voice commands but cannot respond with sound. The dsh-plugin-speak plugin leverages the Windows system’s native speech synthesis interface (SAPI) to provide DSH with offline text-to-speech capability—no network required, no API key needed, and no dependency on third-party services.
Plugin Overview¶
This plugin is a DSH client plugin developed by maintainer wuguanggan. It integrates speech resources already installed on the Windows system into DSH, adding “read aloud” as an interaction mode in conversations. The plugin version is 0.2.0, licensed under the MIT License.
Core Features¶
The plugin provides capabilities at three levels within DSH:
Model-Side Tools
speak: Reads out any text. Supported parameters includetext(text content, up to 4000 characters),voice(voice name or locale, e.g.,Huihuiorzh-CN),rate(speech rate, range −10 to 10),volume(volume, 0 to 100),stop(set totrueto stop current playback). If the text contains Chinese characters and novoiceis specified, a Chinese voice is used by default.speak_voices: Lists all voices installed on the current system, including name, locale, and gender information.
UI Interaction
A ▶ button is added below each completed assistant reply. Click it to read the reply aloud; click again to stop playback. This button only appears on finalized assistant messages. Messages in the middle of streaming output do not have a messageId and therefore cannot be clicked.
Backend Routes
GET /dsh-plugin-speak/play?sessionId=…&messageId=…: The backend implementation for the button.sessionIdandmessageIdare required parameters;action=stopis used to stop playback.
Installation and Activation¶
The plugin is only supported on Windows 10/11. It requires DSH 0.2.x (Web or Desktop profile) to be installed, and the current user must have an available voice.
Install from npm¶
In DSH, navigate to the “Plugins → install bundle” screen, enter dsh-plugin-speak@0.2.0, and restart DSH. The host module and browser-side code will be loaded at startup.
# Enter in the DSH plugin installation screen
dsh-plugin-speak@0.2.0
Install from Source¶
The plugin is a pre-built package, and cordis.patch.yml mounts the relevant lines. You can use pnpm to link the local path in your user directory:
cd $env:USERPROFILE\.dsh\profiles\desktop
pnpm add link:C:\path\to\dsh-plugin-speak
After installation, there are two ways to enable it: add the package to dsh.profile.bundles, or append the following to cordis.patch.yml:
- insert:
- id: speak
name: dsh-plugin-speak
Restart DSH for the configuration to take effect.
Typical Usage¶
Have the agent read content aloud
In a conversation, ask the agent to read text aloud. For example:
- “Read this passage aloud”
- “read this aloud”
The agent will invoke the speak tool with the text and optional voice parameters.
View available voices
Ask about the system voice list in a conversation, or directly call the speak_voices tool, which will return information about installed voices.
Read a reply via the button
For any completed assistant reply, click the ▶ button at the bottom to read the message content aloud. Click again to stop playback.
Stop playback
- Click the ■ button below the reply
- Or pass
stop: truewhen callingspeakin the conversation
Use Cases and Cautions¶
When to use this plugin
- You need to have long conversations on Windows and want the agent to respond with voice
- You need offline voice output to avoid relying on the network or external APIs
- You already have voice input and want to add a corresponding voice output
Things to keep in mind
- The plugin is only available on the Windows platform; macOS and Linux require alternative implementations (PRs are welcome)
- A single read-aloud cannot exceed 4000 characters; longer text must be split manually
- Playback operates in a “fire and forget” mode—the route returns immediately after playback starts, and the completion time is estimated from the character count
- The button only appears on completed assistant messages; messages during streaming output cannot be clicked
- There is no unified settings panel; voice, rate, and volume must be specified on each call
Security Notes
DSH plugins run within the host process and have full user permissions. This plugin launches PowerShell and writes to temporary files, but the HTTP routes are bound only to the local loopback interface, reject cross-site requests, and do not send text to any external address. It is recommended to review the source code and license of any third-party plugin before installing it.
Summary¶
dsh-plugin-speak leverages the Windows system’s native speech synthesis capability to add a basic voice output feature to DSH. It does not depend on any external services, is simple to install, and intuitive to use. If you use DSH on Windows and want your agent to “speak up,” this plugin is a ready-to-use solution.
- Plugin directory: https://www.skillhub.cn/plugins/wuguanggan/dsh-plugin-speak
- GitHub repository: https://github.com/wuguanggan/dsh-plugin-speak