DeepSeek Harness Plugin: dsh-read-aloud-ad

Introduction

DeepSeek Harness (DSH) decomposes the agent development workflow into reusable plugins, allowing developers to focus solely on core logic. In debugging or demo scenarios, quickly proofreading the output of a large language model by reading it word for word is both time-consuming and prone to overlooking details. Existing approaches either rely on copying text to a local text-to-speech tool or require lingering on the interface for an extended period. This article introduces a plugin that invokes speech synthesis directly from the reply action bar in DSH, enabling you to listen while you read.

Plugin Overview

dsh-read-aloud-ad is a client-side plugin developed by maintainer zmq6931. It leverages Microsoft Edge’s Read Aloud service to convert DSH-generated replies into Mandarin (Xiaoxiao voice) and provides playback and speed controls within the reply action row. The plugin invokes the speech service via a local route, does not send model requests to external endpoints, and does not log session events.

Installation & Activation

To install the plugin, run the dsh CLI tool:

dsh plugin add dsh-read-aloud-ad

Alternatively, you can download the .tgz package from the latest release:

dsh plugin add ./dsh-read-aloud-ad-<version>.tgz

After installation, enable “Read Aloud Reply” on the DSH Plugins page.

Core Features

In the action bar of each completed reply (the row containing buttons such as Copy, Thumbs Up, Thumbs Down, etc.), the plugin inserts two controls: a Play/Pause button and a speed menu. These controls are positioned between “Copy” and “Branch.”

  • Play/Pause: Click to start synthesis and playback; click again to pause; click once more to resume. While the first segment is being synthesized, the button shows a loading state, and clicking it will cancel the synthesis.
  • Speed: Open the menu to select a rate from 0.75× to 3× in 0.25× increments (0.75, 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 2.75, 3). The selection is persisted in the browser, and changes take effect immediately during playback.

Only one reply is read aloud at a time; long replies are segmented by sentence. Playback begins as soon as the first segment is synthesized, with subsequent segments fetched in parallel while playing.

Speech Synthesis Mechanism

The plugin sends text to the local route /read-aloud/synthesize, which then invokes Microsoft Edge’s Read Aloud service (via Host) to generate an MP3. Text is sent only to this local route and does not pass through any external API key or model request. Synthesis results are cached in Host memory and are never written to disk. If Microsoft changes the Read Aloud service API and synthesis fails, the action bar will display a prompt, and clicking again will retry.

Optional Configuration

Create a read-aloud.json file in the $DSH_HOME directory to adjust the voice and the per-request character limit:

{
  "voice": "zh-CN-XiaoxiaoNeural",
  "maxChars": 8000
}

voice accepts any Edge voice name (e.g., zh-CN-YunxiNeural); maxChars limits the number of characters per synthesis request (range: 200–40000). A Host restart is required after modifying the configuration.

Use Cases & Notes

Ideal for developers who need to quickly proofread reply content, conduct voice demos, or debug conversation flows. The plugin runs with the privileges of the current DSH process; it is recommended to review the source code and license (MIT) before installing. Ensure that speech.platform.bing.com is accessible before use.

Conclusion

With this plugin, you can read DSH replies aloud directly from the interface, and the speed control further improves proofreading efficiency. For more details and source code, refer to the plugin catalog page and the GitHub repository.

  • Plugin catalog page: https://www.skillhub.cn/plugins/zmq6931/dsh-read-aloud-ad
  • GitHub repository: https://github.com/zmq6931/dsh-read-aloud-ad
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye