# Whisper Transcribe Docker

> Speech-to-text (逐字稿/转写) in Docker using faster-whisper (local, no API key). Use when you already have an audio file (e.g. from `media-audio-download`) and need a transcript with optional timestamps for summarization.

- Skill: `hc-tec/whisper-transcribe-docker` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add hc-tec/whisper-transcribe-docker`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hc-tec/whisper-transcribe-docker/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: hc-tec (https://skillmd.com/u/hc-tec)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/hc-tec/whisper-transcribe-docker

---


# Whisper Transcribe (Docker, faster-whisper)

This skill turns an **audio file** into a **transcript** locally (no OpenAI key).

Use with `media-audio-download`:
1) Download audio -> `out/*.m4a`
2) Transcribe -> `out/*.txt` (or JSON)

## Quick Start

Build image:
```bash
docker build -t moltbot-whisper-transcribe {baseDir}
```

Transcribe an audio file (writes plain text to stdout by default):
```bash
docker run --rm -v "$PWD:/work" -v whisper-models:/models \
  moltbot-whisper-transcribe /work/out/audio.m4a --model small
```

If `huggingface.co` is blocked/unreachable in your network, set a mirror endpoint:
```bash
docker run --rm -e HF_ENDPOINT='https://hf-mirror.com' -v "$PWD:/work" -v whisper-models:/models \
  moltbot-whisper-transcribe /work/out/audio.m4a --model small
```

Write transcript to a file:
```bash
docker run --rm -v "$PWD:/work" -v whisper-models:/models \
  moltbot-whisper-transcribe /work/out/audio.m4a --model small --out /work/out/audio.txt
```

With timestamps:
```bash
docker run --rm -v "$PWD:/work" -v whisper-models:/models \
  moltbot-whisper-transcribe /work/out/audio.m4a --model small --timestamps --out /work/out/audio.txt
```

Notes:
- First run downloads model weights (cached in the `whisper-models` Docker volume).
- For speed, start with `--model tiny` / `--model base`.
- For quality, use `--model medium` (CPU will be slower).

