dsh-tts-studio: Letting DeepSeek Harness Read Out Its Responses

Introduction

When running DeepSeek Harness (DSH) locally and producing long responses or technical documentation, developers typically have to read through them line by line or copy them elsewhere. If your eyes are tired, or you’d like to listen while doing something else, you need a way to have DSH read its replies aloud directly. DSH’s philosophy is “everything is a plugin,” and while the community offers several TTS-related plugins, most only support a single engine or require manually copying text into a browser. Here we introduce dsh-tts-studio, a plugin that supports multiple engines, caches audio locally, and highlights the reading progress directly on the page.

Plugin Overview

dsh-tts-studio is a text-to-speech reading plugin for DeepSeek Harness, maintained by nienieai and categorized under “Model Inference.” Once installed, a speaker button appears beneath every assistant reply—click it to listen. Clicking again will replay the cached audio directly instead of re-synthesizing. The plugin supports five engines: DeepSeek Cloud TTS, browser speech, system speech, local Piper, and any OpenAI-compatible TTS endpoint. During playback, the page highlights the current paragraph and word, a draggable floating window appears in the bottom-right corner, and you can adjust speed, skip paragraphs, or pause/resume.

Core Features

  • One-click listening: A speaker button appears below each reply. Click to start reading; click again while playing to stop. After selecting text, clicking the speaker reads the entire paragraph containing the selection (even if the selection is mid-paragraph, the full paragraph is read).
  • Audio caching: Synthesized audio is cached locally at ~/.dsh/cache/dsh-tts/, with a default cap of 200 MB. Entries are evicted by least-recently-used when the limit is exceeded; you can clear the cache from settings. Cache hits do not incur additional charges.
  • Engine switching: Switch between the five engines in Settings → Voice Reading → Engine:
  • DeepSeek Cloud: Uses DeepSeek’s official TTS (stella / tide). The default engine; requires DEEPSEEK_API_KEY to be configured in DSH.
  • Browser Speech: Uses Chinese voices already installed on your system (e.g., Microsoft Huya/Huihui). Zero configuration, no internet required.
  • System Speech: Uses Windows SAPI / macOS say / Linux espeak-ng. Fully offline, with a more mechanical sound quality.
  • Custom API: Connects to any compatible endpoint, including OpenAI-compatible, GPT-SoVITS, Fish Audio, etc.
  • Reading Bridge (Desktop): Hands the reply off to a dedicated reading page in your default browser, featuring a voice list, per-paragraph reading, paragraph and word highlighting, and finer playback controls.
  • Auto-reading: Enable “Read Replies” in settings to automatically read the last answer at the end of each turn. Turn on “Read In-Progress Output” to read as the response is generated. Prompts and authorization requests can be read separately and toggled independently.
  • Playback controls: A floating window appears in the bottom-right during playback—draggable and remembers its position. Supports previous paragraph / pause·resume / next paragraph. Drag the slider to change speed instantly, or click a tick to jump directly to 0.5×–3×. × stops and clears the queue.
  • Smart skipping: Code blocks, tables, formulas, and images are not read word-for-word. Instead, a fixed prompt is spoken for each (e.g., “Here is a code block”), avoiding unnecessary noise.

Installation & Setup

Prerequisite: DeepSeek Harness is already installed (desktop or Web; the Reading Bridge is only available on desktop).

  1. Open DSH → Plugins → Add Plugin;
  2. Select this repository directory (the level containing package.json);
  3. After installation, refresh the page—the speaker button will appear below assistant replies.

Command-line installation (desktop):

git clone https://github.com/nienieai/dsh-tts-studio.git
dsh plugin --profile desktop add link:./dsh-tts-studio

Or install directly from npm:

dsh plugin --profile desktop add dsh-tts-studio

To pin a specific version, use dsh-tts-studio@0.6.0. Refresh the page after installation; if the plugin still shows as disabled in the plugin list, toggle the switch on.

Refresh the page after installation to load the UI components. Changes to the Host portion (index.js) require restarting DSH to take effect.

For detailed installation, uninstallation, and offline (Piper) setup instructions, see docs/INSTALL.md.

Typical Usage

  • Read a reply: Click the 🔊 in the action bar below the reply. Click again while playing to stop.
  • Read only selected content: Select text first, then click the speaker. The entire paragraph containing the selection will be read (mid-paragraph selections are extended to the full paragraph).
  • Auto-reading: Enable “Read Replies” in settings to automatically read the last answer at the end of each turn. Enable “Read In-Progress Output” to read as the response is generated.
  • Use Browser Speech: Go to Settings → Voice Reading → Engine and select “Browser Speech.” No configuration needed; refresh the page to use it.
  • Use a Custom API: Go to Settings → Voice Reading → Engine and select “Custom API,” then configure the endpoint and authentication details as described in the documentation.

Use Cases & Notes

Ideal for developers and students who need to “listen to” long responses or technical documentation, or for scenarios where your eyes are tired and you’d like to listen during a commute or while cooking. Browser Speech and System Speech work fully offline. The DeepSeek Cloud engine is billed per DeepSeek’s official TTS pricing; cache hits do not incur additional charges. Piper requires you to download the executable and model yourself—the plugin does not bundle them. See docs/INSTALL.md for details.

The plugin runs with the current DSH process permissions. It is recommended to review the source code and LICENSE (MIT) before installing.

Conclusion

dsh-tts-studio enables DeepSeek Harness replies to be read aloud directly, with paragraph and word highlighting, multi-engine support, and local audio caching—perfect for listening while you work. Plugin directory: https://www.skillhub.cn/plugins/nienieai/dsh-tts-reader (Category: Model Inference); GitHub: https://github.com/nienieai/dsh-tts-studio.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye