DeepSeek Harness Completes Prompt Sound Plugin

DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture. In Agent development, feedback after an assistant finishes replying is often overlooked, leading to a stiff interaction experience. To provide natural auditory feedback at the end of a conversation, localized generation of notification sounds is a feasible solution. This plugin offers a complete solution that allows switching and previewing voice tones in the bottom right corner of the window without relying on external APIs.

Plugin Introduction

This is a DeepSeek Harness completion sound Bundle, featuring eight voice tones, a bottom-right control panel, and auto-save functionality. The plugin maintainer is gkgy, and it is licensed under MIT. It primarily solves the lack of auditory feedback when an Agent finishes replying, achieving fast playback through local pre-generated files.

Core Features

  • Eight Voice Tones: Provides the default “No. 3 · Playful Male”, along with seven other tones: Deep Male, Bright Male, Gritty Middle-aged Male, Gentle Female, Lively Female, Cartoon High-pitched, and Electronic Robot. All voices are pre-generated files, requiring no voice model loading or external API calls during playback.
  • Local Audio Generation: Audio is fully localized and files are looked up via predefined IDs.
  • Bottom-Right Controls: Provides voice selection and a “Test Prompt Sound” button in the bottom right corner of the Harness window for intuitive operation.
  • Persistence & Lifecycle: Voice selections are automatically saved. The plugin adheres to the DSH 0.2.1 Session lifecycle, triggering only on running → idle state changes. It will not play sounds for historical replies, session switches, or failed requests.

Installation & Activation

Installation via static Bundle is recommended. First, clone the repository and install dependencies:

git clone https://github.com/gkgy/dsh-plugin-laile-laodi.git
pnpm install

In the DSH desktop profile’s package.json, add this package to dependencies and dsh.profile.bundles. Preserve existing plugins and configurations, and replace the example path with the absolute path to your cloned directory:

{
  "dependencies": {
    "dsh-plugin-laile-laodi": "link:/absolute/path/dsh-plugin-laile-laodi"
  },
  "dsh": {
    "profile": {
      "bundles": ["dsh-plugin-laile-laodi"]
    }
  }
}

Use a package manager to install dependencies in that profile directory (e.g., pnpm install), then restart the Harness. This package declares both host and client entry points; the Bundle will automatically load both. Do not add the dynamic host separately, otherwise audio routing will conflict.

Typical Usage

Once installed, select a voice tone in the bottom right corner of the Harness window and click Test Prompt Sound. The user gesture enables audio playback in the browser. Afterwards, when the assistant finishes a normal reply, the selected sound will play automatically.

Configuration

The plugin provides the following host configurations:

  • audioPath: Defaults to assets/laile-laodi.mp3 inside the package, used as the default file when no voice parameter is provided.
  • route: Defaults to /laile-laodi.mp3, which is the audio routing address. If modified, the client URL must be updated accordingly.

The client selects the voice tone via parameters such as ?voice=chosen-3. Only predefined IDs are used to look up files; URL parameters are not used directly as disk paths.

Notes

  • Playback Limitations: Browser sound policies, system mute settings, and output devices may still affect playback. The displayed “Prompt sound played” only indicates that the player accepted the request, not that the sound was actually emitted.
  • Hardware Dependencies: To regenerate audio, Apple Silicon, Python, MLX, and FFmpeg are required. Output is saved to the generated/ directory by default and will not overwrite published audio directly.
  • Installation Conflicts: Do not enable both the static Bundle and the dynamic host simultaneously.
  • Audio Source: For detailed audio sources, generation parameters, and hashes, see AUDIO_PROVENANCE.md.

Links: GitHub Repository | Community Directory

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

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

Xiaoye