Introduction¶
When performing podcast-related automation in DeepSeek Harness (DSH), a common approach is to let the model directly “guess” where to cut, what the target loudness should be, or what to fill in for the length in the RSS feed. The problem lies in the following: if the cut points are wrong, the file can still play, but the content is misaligned; if the length or type in the RSS <enclosure> tag is inconsistent with the actual file, clients often silently discard the episode. An episode is essentially a long audio stream without inherent structure; the structure is hidden within the silence—pauses between the host and guests, or between the intro and the main content, serve as the quantifiable basis for determining breakpoints.
The following introduces the community plugin dsh-tool-podcast (maintained by yuehancn). It registers a set of tools in DSH that invoke local ffmpeg / ffprobe to perform silence-based chapter inference, segmentation by breakpoints, loudness normalization, and iTunes-compatible RSS generation, without installing audio libraries on the Node side. The plugin is open-sourced on GitHub under the MIT license; see SkillHub for the directory page and yuehancn/dsh-tool-podcast for the source code. The README states that it was built and tested on dsh 0.2.0-rc.2 (preview) with a stable apply(ctx) plugin specification; if you are using a newer version, please verify compatibility yourself.
What is this¶
dsh-tool-podcast is a custom tool plugin for DeepSeek Harness: it separates “understanding the breakpoints and rules first” from “performing the cut, normalization, and publishing.” The core design is that podcast_chapters exists independently, rather than being an embedded parameter of podcast_trim—because cutting incorrectly does not result in obvious errors, so breakpoints must be provided interpretably before operating on them.
The typical workflow is summarized in the README as follows:
podcast_chapters(path="raw.mp3") → Chapter count / Breakpoint seconds / Basis rules
podcast_trim(path, cuts=[...]) → Multi-segment files, default stream copy
podcast_feed(...) → Client-ready RSS, length read from disk
Core Functions: Five Tools¶
podcast_status¶
Confirm the environment before long analyses: report whether ffmpeg / ffprobe are executable, their versions, available operations, supported output formats, and current default silence thresholds, to avoid failures halfway due to unconfigured paths.
podcast_chapters¶
Only calculates, does not cut. Uses ffmpeg’s silencedetect to find silence intervals and converts intervals meeting the duration and threshold criteria into chapter breakpoints; breakpoints fall at the midpoint of the silence interval (farthest from speech on both sides, facilitating explanation). The rule field in the return value specifies the rules used, such as minimum silence duration, the dB level below which it is considered silence, and the midpoint cutting strategy.
| Parameter | Description |
|---|---|
silenceDb |
Noise threshold; treated as silence if below this dB, default -35 |
minSilenceSeconds |
Minimum silence duration to count as a breakpoint, default 0.8 |
maxChapters |
If exceeded, merges the tail instead of throwing an error |
podcast_trim¶
Segments the audio according to given breakpoints, producing one file per segment. cuts is a required list of ascending seconds; the first segment always starts from 0.
| Parameter | Description |
|---|---|
format |
mp3 / m4a / wav / flac / opus, defaults to following the source extension |
accurate |
If true, re-encodes for precise cut points; defaults to stream copy (-c copy) |
prefix |
Output filename prefix, supports Chinese characters |
Stream copying is fast but can only land on packet boundaries; re-encoding is mandatory if the source codec and target container are incompatible. The returned mode and notes explain which path was taken and why.
podcast_feed¶
Writes an iTunes-compatible RSS 2.0 feed. The length of <enclosure> is always obtained via disk stat, never accepted from the caller; type is derived from the extension (e.g., .mp3 → audio/mpeg), and unknown extensions will cause an error. After writing, it re-parses the document for self-validation, summarizing issues in problems.
podcast_normalize¶
Uses ffmpeg’s EBU R128 loudnorm, running in two passes: the first pass only measures, and the second pass uses the measurement results to apply the loudness to the target. Returns include inputLufs, outputLufs, and gainApplied. The default target -16 LUFS is suitable for podcasts; -14 LUFS is suitable for streaming (adjustable via parameters like targetLufs).
Installation and Activation¶
One-line installation (command from the repository README):
dsh plugin --profile desktop add github:yuehancn/dsh-tool-podcast
Supported profiles are desktop (Desktop version) and web (Web version). Restart dsh after installation to use it.
You need to have ffmpeg / ffprobe installed locally and accessible in the PATH, or specify the full path in the configuration. Optional configuration is written to ~/.dsh/profiles/<profile>/cordis.patch.yml, example:
- id: tool-podcast
config:
ffmpegPath: C:/AI/ffmpeg/ffmpeg-release-full/bin/ffmpeg.exe
ffprobePath: C:/AI/ffmpeg/ffmpeg-release-full/bin/ffprobe.exe
outputDir: C:/Users/you/Music/podcast-output
silenceDb: -35
minSilenceSeconds: 0.8
Common fields include: ffmpegPath, ffprobePath (defaulting to ffmpeg / ffprobe respectively), outputDir (default podcast-output), silenceDb, minSilenceSeconds, maxInputSeconds (default 21600, i.e., 6-hour limit), timeoutMs (default 900000), as well as switches to disable status / chapters / trim / feed / normalize per tool (all default to true).
Typical Usage¶
It is recommended to follow the order in the README:
- Call
podcast_statusto confirm ffmpeg availability and default thresholds. - Call
podcast_chapters(path="raw.mp3")on the raw recording to check if the chapter count, breakpoint seconds, andrulemeet expectations; adjustsilenceDb,minSilenceSeconds, ormaxChaptersand rerun if necessary. - After confirming breakpoints, call
podcast_trim(path, cuts=[4.6, 8.8])(example breakpoints based on your previous step’s results), and selectformat,accurate, andprefixas needed. - Call
podcast_normalizeon each segment to unify loudness to the target LUFS. - Call
podcast_feed(feedPath, title, episodes, ...)to write the RSS; check ifproblemsin the return value is empty.
The repository’s test fixtures are synthetic audio: 4.0s 440Hz, 1.2s silence, 3.0s 660Hz, 1.2s silence, 4.0s 880Hz, totaling 13.4s, with expected breakpoints at 4.6s and 8.8s—used for integration testing to verify the “midpoint cutting” behavior, rather than reverse-engineering afterwards.
Use Cases and Notes¶
Who it is for: Developers handling self-made podcasts or long interview recordings within DSH conversations or workflows, who want to use silence to interpretively chapter, quickly segment, unify loudness, and generate RSS that clients are less likely to reject.
Execution method: The plugin uses the current dsh process permissions to spawn ffmpeg locally without constructing shell strings; downloads and disk writes are limited to your configured outputDir and specified feedPath. The README states it does not connect to the internet. Please read the source code and MIT license yourself before installation to ensure the paths and output directories comply with your security policy.
SkillHub Category: “Model Inference”; capability-wise, this plugin belongs to a podcast production toolchain calling local ffmpeg, with no strong binding to whether a specific type of model is used—it serves as a tool in DSH for agents to call on demand.
Other notes: The README mentions implementation details such as handling unclosed silence intervals, stream copy and encoding compatibility criteria, and RSS length self-measurement; the repository contains a test suite targeting real ffmpeg. The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer. The DSH ecosystem philosophy is “Everything is a Plugin.” The facts in this article are derived from the aforementioned repository README and package.json (Plugin version 1.0.0).
Conclusion¶
dsh-tool-podcast breaks down three parts of podcast production prone to silent failures—breakpoint determination, segmentation method, and RSS metadata—into tool steps that can be verified individually and interpreted. If you handle long recordings and RSS publishing in the Harness, you can integrate it via the README installation command, first seeing the breakpoints clearly with podcast_chapters, then proceeding to trim, normalize, and feed.
- Directory Page: https://www.skillhub.cn/plugins/yuehancn/dsh-tool-podcast
- GitHub: https://github.com/yuehancn/dsh-tool-podcast