zhouwei713/dsh-daily-kit--packages-transcription0

dsh-daily-transcription

dsh plugin: transcription (developer preview)

包名
dsh-daily-transcription
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhouwei713/dsh-daily-kit#03d93caab5b846c990da8bb201d52881756ed483&path:packages/transcription

安装与配置


# dsh 配置示例
- id: transcription
  name: dsh-daily-transcription
  config:
    enabled: true
    provider: openai-compatible   # 或 local-whisper(全离线)
    language: ''                  # 语言提示(ISO-639-1,如 zh/en);空 = 自动
    maxDurationSec: 7200          # 媒体时长上限(秒)
    chapterWindowSec: 300         # 分章时长窗口(秒),默认 5 分钟
    silenceGapSec: 8              # 静音间隔阈值(秒),超过则另起一章
    ffmpegPath: ''                # ffmpeg 路径;视频输入/云端裁剪必需
    tempDir: ''                   # 临时音频目录;空 = 系统临时目录
    openai:                       # 云端引擎(默认 provider)
      baseURL: https://api.openai.com/v1
      apiKeyEnv: OPENAI_API_KEY   # 环境变量名,密钥只从环境变量读
      model: whisper-1
      timeoutMs: 600000
    whisper:                      # 本地引擎(local-whisper)
      binaryPath: whisper-cli     # whisper.cpp 二进制路径
      modelPath: ''               # 模型文件路径(如 ggml-base.bin),必填
      timeoutMs: 3600000

换兼容端点:Groq / DeepInfra 等 OpenAI 兼容转录端点只需改 openai.baseURL(及 apiKeyEnv/model),例如 Groq:

    openai:
      baseURL: https://api.groq.com/openai/v1
      apiKeyEnv: GROQ_API_KEY
      model: whisper-large-v3

安装 whisper.cpp(local-whisper 需要,插件不内置、不编译):

git clone https://github.com/ggml-org/whisper.cpp && cd whisper.cpp
cmake -B build && cmake --build build --config Release
bash models/download-ggml-model.sh base   # 下载模型