Preface¶
When developing agents with DeepSeek Harness (DSH), the common network-side capabilities are web_search and web_fetch—both are text channels, with no browser or player, so they cannot obtain video frames or audio tracks, and the host itself cannot “watch videos or listen to audio.”
To turn an online video into retrievable, summarizable text, the common approach is to attach another layer of cloud transcription API, or to download manually and run ASR with local tools. The DSH desktop often already has the SenseVoice int8 model for speech input (located at ~/.dsh/speech-to-text/sensevoice, inferred by sherpa-onnx); what is mainly missing is the segment that “extracts the audio track from a URL and connects it to the recognition pipeline.”
Below is the community plugin dsh-video-transcribe (maintainer: wqzhellohhwy, category: networking tool): once enabled in a profile, models can submit http(s) video links through the tool video_transcribe, and the local yt-dlp, ffmpeg, and sherpa-onnx/SenseVoice complete downloading, transcoding, and offline transcription. Long audio is automatically chunked, and no cloud transcription service is called.
What is this¶
dsh-video-transcribe is a bundle plugin for DeepSeek Harness (npm package name dsh-video-transcribe, current version 0.2.0, MIT license). It registers a single tool video_transcribe, stringing together “extract audio track → 16 kHz mono PCM → chunk → local ASR” into one pipeline; both media handling and inference are completed on the local machine.
Plugin directory page: https://www.skillhub.cn/plugins/wqzhellohhwy/dsh-video-transcribe
Source code and docs: https://github.com/wqzhellohhwy/dsh-video-transcribe
Community directories such as SkillHub are independent of DeepSeek / High-Flyer (幻方) and are not official app stores; before installation you are advised to read the source code and license yourself, and remember that plugins run with the permissions of the current DSH process.
Why chunking is needed¶
The measured conclusion in the README: SenseVoice is mainly trained and used for speech within about 30 seconds. If you hand the entire long audio to sherpa-onnx-offline in one go, the process may still exit with code 0, but the latter half of the content will be silently discarded—the word count of the transcribed subset may even exceed the word count of the whole input in one pass.
Therefore the plugin forces chunking after transcoding (default target chunk length about 30 seconds, with the cut point snapping to a quieter spot within ±1.5 seconds), and then batches the chunks into sherpa for inference. In the same README, a video of about 69 minutes produced about 25,500 characters under the chunked path, whereas the pre-fix single-pass path once produced 0 characters. If chunking fails, the job fails directly and does not fall back to “single pass over the whole file” (to avoid a partial transcript being treated as a complete result).
Core features and dependencies¶
Processing pipeline¶
yt-dlp extract audio track (and write info.json, title/duration and other metadata)
→ ffmpeg convert to 16 kHz mono PCM wav (SenseVoice input specification)
→ chunking about 30 seconds per chunk, cut point can snap to silence
→ sherpa-onnx + SenseVoice local inference to produce transcript
Local dependencies¶
| Dependency | Default location | Notes |
|---|---|---|
yt-dlp |
<DSH_HOME>/video-transcribe/bin/ |
extract audio track |
ffmpeg |
same as above | transcoding |
sherpa-onnx-offline |
same as above | inference (README notes sherpa-onnx v1.13.8 official precompiled static version) |
model.int8.onnx, tokens.txt |
<DSH_HOME>/speech-to-text/sensevoice/models/sensevoice-onnx/ |
reuse the existing SenseVoice model, no separate download needed |
If the first three executables are not in place, the plugin still registers, but calls will return the missing items and expected paths clearly. URLs only accept http(s); audio tracks that cannot be obtained due to login/paywall/DRM are not handled.
Tool video_transcribe¶
| Parameter | Applicable action | Notes |
|---|---|---|
action |
all (required) | start / status / list / cancel |
url |
start |
link to a video or audio page |
jobId |
status / cancel |
job id returned by start or list |
language |
start |
auto (default) / zh / en / ja / ko / yue |
label |
start |
job label, only affects list display |
waitSeconds |
start |
max seconds to wait on the spot, default 45, cap 120; 0 means return immediately |
Long tasks use a job system: state is stored in <DSH_HOME>/video-transcribe/jobs/<id>/job.json, and can still be queried after a DSH restart; stages include download → convert → segment → transcribe. Only one transcription job runs at a time (inference peak memory can reach the several-GB range), and subsequent tasks queue up.
The tool outputs only the full transcript; summarization, translation, or structuring are handled by the model that calls it.
Installation and activation¶
The plugin uses the standard bundle mechanism: add a link dependency in the profile’s package.json, and write the package name into dsh.profile.bundles. The repository ships with dsh.bundle.patch, which inserts the corresponding bundle configuration; generally you do not need to hand-write a complete cordis.patch.yml.
Modify it in the profile directory as shown in the README example (replace <本仓库绝对路径> with your cloned or extracted plugin directory):
{
"dependencies": {
"dsh-video-transcribe": "link:<本仓库绝对路径>"
},
"dsh": {
"profile": {
"bundles": ["@deepseek-ai/dsh-base", "dsh-video-transcribe"]
}
}
}
Run the following in that profile directory:
pnpm install
Link dependencies do not access the network. After completion, restart the DSH instance for the changes to take effect.
Note: the desktop profile of the desktop version (Electron) is managed exclusively by the application; the CLI will reject dsh plugin --profile desktop; using the package.json modification approach still works, but the plugin will only go online after restarting the desktop version.
The runtime environment requires Node.js >= 20 (see package.json engines).
Configuration (optional)¶
If you need to change the default language, thread count, chunk length, etc., you can override them by id in the profile’s cordis.patch.yml (the semantics with the bundle layer is full replacement):
- id: video-transcribe
name: dsh-video-transcribe
config:
language: zh
threads: 8
maxDurationSec: 7200
chunkSeconds: 30
Common fields include: language (default auto), threads (default min(8, cores-1)), maxDurationSec (default 14400, refused if exceeded), chunkSeconds (default 30; the README suggests not adjusting above 120, as too-long chunks will obviously lose content), waitSeconds / maxWaitSeconds (control on-the-spot waiting for start). For the complete list see the “Configuration” section of the GitHub README.
Typical usage¶
Start transcription (the example is a Bilibili link, with language set to Chinese):
video_transcribe({ action: "start", url: "https://www.bilibili.com/video/BV...", language: "zh" })
start waits for up to waitSeconds (default 45 seconds): if the job completes before that, it returns the full transcript directly; otherwise it returns a jobId, and you then poll with status:
video_transcribe({ action: "status", jobId: "20261008-002519-349225" })
When the job is done, status returns the full transcript. You can also use list to view the queue and cancel to cancel a specified job.
Verification commands in the repository (run in the plugin directory):
node selftest.mjs
node e2e.mjs "https://www.bilibili.com/video/BV..."
selftest.mjs covers pure functions, chunking, and the registration contract, etc.; e2e.mjs goes through the real tool entry to perform end-to-end transcription (the README explains that without arguments it runs the default long-video test case).
Use cases and limitations¶
Suitable for: DSH users who need to convert public http(s) video/audio pages into text, and want data to stay on the local machine without depending on a cloud ASR API; it shares the model with the existing SenseVoice speech input capability, with no need to download the large model again.
Notes:
- Punctuation and sentence segmentation are unreliable; English punctuation is especially weak; proper nouns are prone to phonetically-similar misspellings; when citing terminology it is advisable to check against the original video.
- Videos that are purely visual with no commentary have no audio track to transcribe, and no content can be obtained.
- It does not bypass site login or DRM; if the audio track cannot be obtained, it fails and returns structured error codes (such as
download_failed,segment_failed,transcribe_empty, etc.). - The plugin’s design emphasizes that “silently losing content is worse than an error”: long audio must be chunked; if the output density is too low, a warning is issued in the result (
lowYieldThreshold), to help detect abnormal segments.
Conclusion¶
dsh-video-transcribe fills the gap of video audio tracks that the DSH text networking surface cannot reach: a single link, local yt-dlp + ffmpeg + sherpa-onnx/SenseVoice, with zero cloud transcription API. If you are doing DSH-based material organization, podcast archiving, or long-video transcription, you can check the introduction on SkillHub and read the complete README and dependency placement instructions on GitHub.