dsh-asr-batch: Batch Audio Transcription and Subtitle Output for Directory Files

Preface

When building voice-related pipelines in DeepSeek Harness (DSH), the common practice is to call ASR one file at a time, or to write custom scripts for format conversion, slicing, and saving results. When dealing with dozens of interviews or meeting recordings in a directory, you also have to consider the API’s per-call duration limit and costs, which can easily pile up the workload on operations scripts. dsh-asr-batch consolidates “batch transcription + cost estimation + optional execution” into a single CLI, which is invoked by the DSH agent according to the skill description. It is suitable for hanging in the Harness workflow for batch dictation and subtitle generation.

What is this

@deepwhale-cn/dsh-asr-batch is a skill-based plugin for the DSH community (no independent dashboard): after installation, the agent invokes the CLI according to the skill description; it does not come with a built-in visual interface. The repository maintainer is feely0208 (GitHub), npm package version 0.1.0, license MIT.

The core problem solved by the plugin: batch calling the DeepSeek official ASR interface (api.deepseek.com) for audio in a specified directory, outputting full-text .txt and segment-level .srt subtitles; it allows estimating total duration and costs before execution, and only uploads for transcription after confirmation.

Core Capabilities

The capabilities verifiable from the documentation are as follows:

  1. Batch Transcription: Scans audio in the directory, converts it to 16k mono WAV using ffmpeg, and automatically slices it based on the API’s ≤120-second limit before requesting ASR.
  2. Outputs: Full-text text (.txt) and segment-level subtitles (.srt).
  3. Estimate Before Execute: By default, it only estimates duration and costs without uploading; adding --confirm will send the files to DeepSeek and execute the transcription.
  4. Cost Reference: The README provides a rate snapshot dated 2026-11-13 (limited-time price 0.39 RMB/hour), actual billing is subject to your account and the official website at the time.
  5. Networking and Keys: Only uploads audio to the DeepSeek ASR; the API Key is provided via the environment variable DEEPSEEK_API_KEY or the parameter --key-file; costs are borne by the Key holder.

Runtime environment requirements (from package.json): Node.js ≥18, DSH >=0.1.0-rc.6 and <0.3.0.

Installation and Enablement

Install in DSH according to the official README (do not manually concatenate github:owner/repo formats):

dsh plugin --profile web add @deepwhale-cn/dsh-asr-batch

After installation, there is no separate dashboard; you need to let the agent invoke the CLI according to the plugin’s skill description in Harness, or run the commands inside the package directly in the terminal.

Typical Usage

The following two steps correspond to the “estimate first, then confirm execution” workflow.

Estimate duration and costs for the directory (no upload):

npx @deepwhale-cn/dsh-asr-batch --dir <directory>

Execute transcription after confirmation (audio will be uploaded and billed):

npx @deepwhale-cn/dsh-asr-batch --dir <directory> --confirm

Before execution, please ensure DEEPSEEK_API_KEY is set, or prepare the key file pointed to by --key-file. Long audio will be sliced by ffmpeg on the plugin side, so you don’t need to slice it manually.

Suitable Scenarios and Notes

Who is it for: Developers or small teams who need to batch convert recordings/podcasts/meeting audio to text and SRT in DSH or locally, and are willing to use their own DeepSeek API Key.

Must Note:

  • The plugin runs with the current DSH process permissions. Before installation, it is recommended to read the repository source code and the MIT license to ensure the upload paths and data processing meet your compliance requirements.
  • Networking Plugin: After --confirm, audio is uploaded to the DeepSeek official interface, and you bear the cost and responsibility for the key.
  • Community directory sites (such as the SkillHub plugin page) have no official affiliation with DeepSeek/Fenxiang; the DSH ecosystem follows the philosophy of “everything is a plugin,” so choosing third-party plugins requires you to independently evaluate the trust boundaries.

Conclusion

dsh-asr-batch strings together directory batch ASR, ffmpeg preprocessing, 120-second slicing, full-text and SRT output, and “estimate then --confirm” into a reproducible pipeline, making it easy to integrate into the DSH agent workflow. For further details and issues, see the GitHub repository; for directory introduction, see SkillHub.

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

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

Xiaoye