agentleFS
oyzh888oyzh888/whisper-transcribe/SKILL.md

whisper-transcribe

Skill0 starsChanged 6 months agoMITView on GitHub

GPU-accelerated audio transcription for meetings, interviews, lectures. Uses WhisperX (faster-whisper + Pyannote VAD) for the best quality-speed tradeoff. Handles Chinese-English mixed audio correctly, 30-40x faster than stock whisper. Triggers on "transcribe this audio", "转录一下", "这个录音", "会议录音", "字幕", meeting m4a/wav/mp3 files, or when given audio/video file paths.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. azuma520/youtube-to-notebooklm★ 38same name
    2. JinukMoon/agent-skills★ 4same name
    3. mfang0126/openclaw-skills★ 4same name
    4. fabioespindula/awesome-nanoclaw-skills★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If running on a fresh machine, the setup script handles everything:

    line 75
  2. Distinctive:

    Only add flags when the user explicitly asks:

    line 87
  3. Distinctive:

    If the audio is a meeting, offer to summarize key points / extract TODOs

    line 98

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

whisper-transcribe — GPU meeting transcription

Batteries-included transcription for Steve's environment. Defaults tuned for 会议录音 on H100/H200 GPUs.

When to use

  • User says "转录", "transcribe", "字幕", "会议录音", "听写", "记录一下这个录音"
  • User provides an audio/video path (.m4a, .mp3, .wav, .mp4, .m4v, .mov)
  • Need text from audio: meetings, podcasts, interviews, lectures, screen recordings

Quick start

# Default: WhisperX large-v3, bs=16, auto language (best for Chinese+English meetings)
~/.claude/skills/whisper-transcribe/scripts/transcribe.sh <audio_file>

# Output files written to same dir as input:
#   <input>.txt                 plain transcript
#   <input>.segments.txt        [timestamp] text lines
#   <input>.json                full WhisperX JSON

Common invocations

Use caseCommand
Default (meeting, auto)transcribe.sh meeting.m4a
Chinese only (faster, monolingual only)transcribe.sh meeting.m4a --lang zh
English only (monolingual only)transcribe.sh meeting.m4a --lang en
Fast mode (bs=32, nearly identical quality)transcribe.sh meeting.m4a --fast
Quality mode (bs=8, slightly better)transcribe.sh meeting.m4a --quality
Speaker diarization (who said what)transcribe.sh meeting.m4a --diarize
SRT subtitlestranscribe.sh video.mp4 --srt
Word-level timestampstranscribe.sh audio.wav --words

Performance (H100 80GB, benchmarked 2026-05-05)

Audio lengthExpected wall timeRealtime factor
10 min~7s90x
30 min~20s90x
60 min~40s90x
2 hours~80s90x
  • Model: Whisper large-v3 fp16 via CTranslate2
  • VAD: Pyannote V3 (auto-splits silence, handles code-switching)
  • GPU util: ~50% avg SM activity, ~26% compute utilization (memory-bound, normal)
  • VRAM: ~10 GB at bs=16, ~15 GB at bs=32

Why this skill

Compared alternatives on 54-min Chinese-English meeting:

MethodTimeQualityNotes
openai-whisper (stock)18 min❌ mixes zh/enBaseline
faster-whisper bs=3228s⚠️ mixes zh/en in segmentsFastest
WhisperX bs=16 (this skill)36s✅ Correct zh/en segmentationBest balance

WhisperX wins on quality: Pyannote VAD correctly segments Chinese-English code-switched speech into language-consistent chunks.

Requirements

Already installed in Steve's env (verified 2026-05-05):

  • whisperx (pip) — includes faster-whisper + Pyannote
  • ffmpeg at /opt/ffmpeg/bin/ffmpeg (for audio conversion)
  • CUDA-capable GPU (H100/H200/A100)
  • HuggingFace token cached (for Pyannote VAD model, only needed once)

If running on a fresh machine, the setup script handles everything:

~/.claude/skills/whisper-transcribe/scripts/setup.sh

Agent guidance

Default is the right answer 99% of the time. Just run:

~/.claude/skills/whisper-transcribe/scripts/transcribe.sh <audio>

Only add flags when the user explicitly asks:

  • --lang zh / --lang en → only when audio is truly monolingual. Forcing a single language on code-switched audio causes hallucination loops. Leave blank for mixed zh/en — auto-detect + VAD handle it correctly.
  • --diarize → user asks "谁说了什么", "who said what", speaker labels
  • --srt → user asks for subtitles
  • --fast → user says "快一点", "quick", "draft quality is fine"
  • --quality → user says "最高质量", "highest accuracy"
  • --words → user asks for word-level timestamps or karaoke-style output

After transcription:

  • For short files (<5 min), show a preview of the text to user
  • For long files, summarize + mention output file paths
  • If the audio is a meeting, offer to summarize key points / extract TODOs

Troubleshooting

ProblemFix
Failed to load audioThe raw WAV may lack a header; script auto-reconverts via ffmpeg
CUDA OOMUse --fast with lower batch (8 or 4) via --bs 4
Poor quality on a single languageExplicitly set --lang zh or --lang en
Missing HF token (for diarization)Run huggingface-cli login once
Model download slowFirst run downloads ~3 GB to ~/.cache/huggingface/; subsequent runs are cached

Script contract

scripts/transcribe.sh behavior:

  1. Accepts any audio/video path (m4a, mp3, wav, mp4, mov, mkv, webm)
  2. Converts to 16kHz mono WAV via ffmpeg if needed (cached next to input)
  3. Runs WhisperX large-v3 fp16 on CUDA
  4. Writes 3 outputs next to input file:
    • <name>.txt — plain transcript (joined segments)
    • <name>.segments.txt — [NNNs] text timestamped lines
    • <name>.json — full WhisperX result (includes word timings if --words)
  5. On stderr: progress, GPU utilization sample, final timing summary

Exit codes: 0 success, 1 bad input, 2 transcription error, 3 missing dependency.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.