Introduction¶
When running the DeepSeek Harness (DSH) Web UI or coding for extended periods, many people open browser tabs or local players to play ambient sounds. Those approaches either have no connection to DSH and require manually finding files when switching scenes, or come with a bunch of pre-made playlists that don’t match the audio you actually have. The community plugin @weibaohui/dsh-ambient is introduced below: it determines “scenes” by the folder structure under the audio root directory, optionally lets the host launch an agent in the background to download audio from Wikimedia Commons categorized by license, and provides a mini player in the Web UI to control playback and schedule shutdown.
What is this¶
@weibaohui/dsh-ambient is published by maintainer weibaohui and categorized under “Fun Customization” in the SkillHub plugin directory. It is positioned as a DSH Web-side white noise player: the plugin package does not contain audio files; the host side supports streaming reads from the local library (supports HTTP Range), without uploading or distributing audio. Licenses and sources are recorded in the INDEX.md / ATTRIBUTION.txt within the library.
The current npm version is 0.1.2 (MIT), with engines.dsh declaring a minimum of @deepseek-ai/dsh >=0.1.7-rc.2; the README version table records that 0.1.0 was verified on a real device with 0.2.0-rc.2.
Core Features¶
Purely Directory-Driven Scenes¶
Each subfolder under libraryRoot is a scene, and the folder name is the scene name. There are no pre-made scene lists and no alias matching: create a folder to create a scene, delete a folder to delete a scene. If the scene in the configuration points to a deleted folder, the library loading will fall back to the first scene and write back the configuration.
The default audio root directory is ~/.dsh/dsh-ambient/library/ (subject to the settings page).
Background AI Download¶
After clicking “Execute Download” on the settings page, the host creates a main conversation-level agent session with bash through the apiproxy to unattendedly execute the download instructions: first read INDEX.md to skip existing URLs, then search the Wikimedia Commons API (no key required), prioritize licenses PD/CC0 > CC BY > CC BY-SA, download to the corresponding scene folder and update INDEX.md / ATTRIBUTION.txt, and automatically rescan the library after completion. Real-time progress can be seen below the button; single concurrency, clicking again during task execution will show the current progress; completion or 30 minutes timeout will wrap up.
Playback and Control¶
- Four playback modes (
playMode): sequential loop, random, single track loop, intermittent (play 20 minutes, stop 5 minutes). - Cross-scene playback (
crossScene): when checked, previous/next track and looping are performed across all scenes in the library; when unchecked, only within the currently selected scene. - Favorites and play favorites only: the heart button favorites the current track (key is
scene id/filename); when “play favorites only” is checked, the playback pool is the favorited tracks, and when the pool is empty, it automatically falls back to the full library. - Playback pool priority: play favorites only > cross-scene > current scene; when the pool option changes, try to keep the current track for seamless continued playback.
- Smart volume: start/switch/resume fades in from 0 over about 3 seconds; pause, track switch, timer shutdown and other boundaries have crossfade or long fade-out, while the main volume maintains the set value.
- Sleep timer (
sleepHours/sleepAtTime): stop after playing for N hours (optional off, 30 minutes, 1/2/4/8 hours), or stop at a specified time HH:MM (handles crossing days); about 4 seconds long fade-out at the time point. - Mini player: floating window in the bottom right corner, draggable (position remembered), can be shrunk into a small ball, supports scene switching, vertical volume control, favorites; the information line displays the current scene and filename.
- Streaming playback: the client only requests by scene + track index; the host performs path security validation to prevent directory traversal.
Installation and Activation¶
The installation command follows the README:
dsh plugin --profile web add @weibaohui/dsh-ambient -w
After installation, restart dsh web to take effect. The plugin runs with the current dsh process permissions. Before installation, it is recommended to review the source code and MIT license of the GitHub repository, and confirm that the local Node meets >=22.5.
Typical Usage¶
- Open the Web UI → Settings page → White Noise, click “Execute Download”, and wait for the background AI to create scene folders and download from Wikimedia Commons; you can also manually place audio in subfolders of the audio root directory and then click “Scan”.
- Select one in the scene dropdown, check to enable or click the mini player ▶ to start playback.
- Playback mode, sleep timer, cross-scene, play favorites only, etc. are adjusted on the settings page; daily track switching, volume, and favorites use the mini player in the bottom right corner.
- When a new scene is needed: create a new folder and put audio in it (name as you like), or execute AI download again.
Use Cases and Notes¶
Suitable for developers who are already using DSH Web, want to listen to ambient sounds in the same interface, and accept “library is completely local, scenes are determined by folders”. If you don’t want to use AI downloads, just maintain local folders.
Note: AI download depends on the host’s apiproxy and session capabilities, requires network access to Wikimedia Commons; download tasks have timeout and single concurrency limits. Audio copyright is subject to the ATTRIBUTION.txt corresponding to each file and Commons licenses; do not redistribute downloaded content as the plugin author.
The DSH ecosystem philosophy is “everything is a plugin”; SkillHub is a community directory with no official affiliation with DeepSeek / High-Flyer.
Links¶
- Directory page: https://www.skillhub.cn/plugins/weibaohui/dsh-ambient
- GitHub: https://github.com/weibaohui/dsh-ambient