🎙️ Super-Transcribe — Unified Speech-to-Text
A self-contained transcription skill with two bundled backends that intelligently routes based on task requirements:
- 🦜 Parakeet (NVIDIA NeMo) — best accuracy (6.34% WER), ~3380× realtime, auto-punctuation, 25 European languages, NeMo diarization
- 🗣️ faster-whisper (CTranslate2) — translation, 99+ languages, initial prompting, advanced inference tuning
Lazy loading: each backend sets up its own venv on first use. No pre-configuration needed — just transcribe and the right backend installs itself.
⚡ First-Time Setup
Follow these 3 steps on first use. Goal: install only what this user's hardware needs — nothing extra.
Step 1 — Check readiness (instant, no downloads)
./scripts/transcribe --check --json
action result |
What to do |
"ready" |
Skip setup — already installed. Go straight to usage. |
"install_python" |
Tell user to install Python 3.10+ first, then re-run |
"run_quickstart" |
Continue to Step 2 |
Key fields: gpu (name + VRAM), ffmpeg, backends status, estimated_install (download size for recommended backend), missing_optional (non-blocking items — do NOT eagerly install these).
Step 2 — Preview the install (no downloads)
./scripts/transcribe --quickstart --dry-run --json
Tell the user what will be downloaded before proceeding. Relay from the estimated field:
- Which backend and why it was chosen
- Total download size (setup + model on first use)
Example message: "Your system has an NVIDIA GPU, so I'd install the Parakeet backend for best accuracy. That's 5GB for setup plus ~1.2GB for the model on first use (6.2GB total). OK to proceed?"
For GPU systems where the user wants a smaller install, see Lean Install Option below.
Step 3 — Install (after user confirms)
./scripts/transcribe --quickstart --json
ok: true → backend installed. First transcription downloads model weights (~1-2 GB, cached permanently).
ok: false → check errors array for what failed.
What Gets Installed
Quickstart installs exactly ONE backend — the best for detected hardware:
| Hardware |
Backend installed |
Setup download |
Model (first use) |
Total |
| NVIDIA GPU |
Parakeet (NeMo) |
~5 GB (PyTorch + CUDA + NeMo) |
~1.2 GB |
~6.2 GB |
| CPU / macOS |
faster-whisper |
~300 MB (CTranslate2, no PyTorch) |
~756 MB |
~1 GB |
NOT installed by quickstart (deferred until actually needed):
- Second backend — auto-installs only when the user triggers a feature that needs it (
--translate or non-EU language → faster-whisper; --fast/--multitalker → Parakeet)
- System deps — install separately only if the user needs them:
ffmpeg — only for non-WAV input (mp3/m4a/mp4/ogg). Install: sudo apt install ffmpeg
yt-dlp — only for YouTube/URL downloads. Install: pipx install yt-dlp
- HuggingFace token — only for
--diarize with faster-whisper. Setup: huggingface-cli login
- PyTorch for faster-whisper — deferred until
--diarize is first used (saves ~2.8 GB on initial install)
Do NOT pre-install optional deps. Wait until the user actually needs a feature — the script auto-installs or clearly reports what's missing at that point.
Lean Install Option
If a GPU user wants a smaller download (~1 GB instead of ~6.2 GB):
./scripts/transcribe --setup faster-whisper
Trade-off: ~20× realtime speed (vs ~3380× with Parakeet), no built-in punctuation. Only offer this if the user explicitly asks for a minimal install or has limited bandwidth/disk.
Supplementary info: see Setup Details further down.
✅ Setup done. Everything below is usage reference — read on demand.
When to Use
Use this skill for any speech-to-text task. It replaces both the faster-whisper and parakeet skills as your single entry point.
Trigger phrases:
"transcribe this", "speech to text", "what did they say", "make a transcript",
"subtitle this video", "who's speaking", "translate this audio", "transcribe this podcast",
"transcribe with parakeet", "transcribe with whisper", "best accuracy transcription",
"transcribe in French", "diarize this meeting", "find where X is mentioned",
"audio to text", "translate to English", "search transcript for", "when did they say",
"at what timestamp", "add chapters", "detect chapters", "find breaks in the audio",
"table of contents for this recording", "TTML subtitles", "DFXP subtitles",
"broadcast format subtitles", "Netflix format", "ASS subtitles", "aegisub format",
"LRC subtitles", "timed lyrics", "karaoke subtitles", "HTML transcript",
"confidence-colored transcript", "separate audio per speaker", "export speaker audio",
"transcript as CSV", "spreadsheet output", "podcast RSS feed", "per-file language",
"remove filler words", "clean up ums and uhs", "transcribe left channel",
"wrap subtitle lines", "character limit per line", "detect paragraphs"
Auto-Routing Logic
The router picks the backend automatically:
┌─────────────────────────────────────────────┐
│ --backend specified? │
│ YES → use that backend │
│ NO ↓ │
├─────────────────────────────────────────────┤
│ --fast or --multitalker? │
│ YES → parakeet │
│ NO ↓ │
├─────────────────────────────────────────────┤
│ Needs faster-whisper-only feature? │
│ (translate, initial-prompt, hotwords, │
│ multilingual, non-EU language, advanced │
│ inference tuning params) │
│ YES → faster-whisper │
│ NO ↓ │
├─────────────────────────────────────────────┤
│ Needs parakeet-only feature? │
│ (--long-form, --streaming, --no-align) │
│ YES → parakeet │
│ NO ↓ │
├─────────────────────────────────────────────┤
│ Default: prefer Parakeet (best accuracy │
│ + speed + auto-punctuation) │
│ Fall back to faster-whisper if Parakeet │
│ not installed │
└─────────────────────────────────────────────┘
Quick Reference
Basic (Auto-Routes to Best Available)
| Task |
Command |
| Basic transcription |
./scripts/transcribe audio.mp3 |
| SRT subtitles |
./scripts/transcribe audio.mp3 --format srt -o subs.srt |
| VTT subtitles |
./scripts/transcribe audio.mp3 --format vtt -o subs.vtt |
| ASS subtitles |
./scripts/transcribe audio.mp3 --format ass -o subs.ass |
| LRC lyrics |
./scripts/transcribe audio.mp3 --format lrc -o lyrics.lrc |
| TTML broadcast |
./scripts/transcribe audio.mp3 --format ttml -o subs.ttml |
| CSV spreadsheet |
./scripts/transcribe audio.mp3 --format csv -o out.csv |
| JSON output |
./scripts/transcribe audio.mp3 --format json -o out.json |
| YouTube/URL |
./scripts/transcribe https://youtube.com/watch?v=... |
| Batch process |
./scripts/transcribe *.mp3 -o ./transcripts/ |
| Force backend |
./scripts/transcribe --backend parakeet audio.mp3 |
| List backends |
./scripts/transcribe --backends |
| Show version |
./scripts/transcribe --version |
| Probe metadata |
./scripts/transcribe --probe audio.mp3 |
| Fast mode (110M) |
./scripts/transcribe --fast audio.mp3 |
| Multitalker |
./scripts/transcribe --multitalker meeting.wav |
| Resume batch |
./scripts/transcribe *.mp3 --resume progress.json -o ./out/ |
| Exact model |
./scripts/transcribe -m nvidia/parakeet-tdt-1.1b audio.wav |
| Model alias |
./scripts/transcribe --backend pk -m 1.1b audio.wav |
| Speaker diarization |
./scripts/transcribe meeting.wav --diarize |
| Search transcript |
./scripts/transcribe audio.mp3 --search "keyword" |
| Detect chapters |
./scripts/transcribe audio.mp3 --detect-chapters |
| Clean filler words |
./scripts/transcribe audio.mp3 --clean-filler |
| Denoise audio |
./scripts/transcribe audio.mp3 --denoise |
| Podcast RSS feed |
./scripts/transcribe --rss https://feed.url |
| Burn subtitles |
./scripts/transcribe video.mp4 --burn-in out.mp4 |
| Name speakers |
./scripts/transcribe audio.mp3 --diarize --speaker-names "Alice,Bob" |
| Export speaker audio |
./scripts/transcribe audio.mp3 --diarize --export-speakers ./spk/ |
Routes to Faster-Whisper Automatically
| Task |
Command |
Why |
| Translate → English |
./scripts/transcribe audio.mp3 --translate |
Whisper-specific feature |
| Canary translation |
./scripts/transcribe audio.mp3 --backend parakeet --translate --source-lang fr --target-lang de |
NeMo Canary (EN/FR/DE/ES bidirectional) |
| Domain jargon |
./scripts/transcribe audio.mp3 --initial-prompt "Kubernetes" |
Whisper-specific prompting |
| Non-European language |
./scripts/transcribe audio.mp3 -l ja |
Parakeet: 25 EU langs only |
| Multilingual mode |
./scripts/transcribe audio.mp3 --multilingual |
Whisper-specific feature |
| Hotwords boost |
./scripts/transcribe audio.mp3 --hotwords 'JIRA Kubernetes' |
Whisper-specific feature |
| Prefix conditioning |
./scripts/transcribe audio.mp3 --prefix 'Good morning,' |
Whisper-specific feature |
| Clip time range |
./scripts/transcribe audio.mp3 --clip-timestamps "30,60" |
Whisper-specific feature |
| Detect language only |
./scripts/transcribe audio.mp3 --detect-language-only |
Routes to fw by default; use --backend parakeet for Parakeet detection |
| Parallel batch |
./scripts/transcribe *.mp3 --parallel 4 -o ./out/ |
Whisper-specific feature |
Routes to Parakeet Automatically
| Task |
Command |
Why |
| Long audio (>24 min) |
./scripts/transcribe lecture.wav --long-form |
Parakeet-only: local attention mode |
| Streaming output |
./scripts/transcribe audio.wav --streaming |
Parakeet-only: chunked inference |
| Fast / low VRAM (110M) |
./scripts/transcribe --fast audio.mp3 |
Parakeet 110M model (~2GB VRAM) |
| Multitalker / overlap |
./scripts/transcribe --multitalker meeting.wav |
Sortformer + multitalker pipeline |
| Skip alignment |
./scripts/transcribe audio.wav --no-align |
Parakeet-only: faster, less precise |
| Canary translation |
./scripts/transcribe --backend parakeet --translate --source-lang fr --target-lang de audio.wav |
Parakeet-only: Canary bidirectional EU translation |
| Detect language (Parakeet) |
./scripts/transcribe --backend parakeet --detect-language-only audio.wav |
Parakeet language detection (requires --backend parakeet) |
| Danish transcription |
./scripts/transcribe -l da audio.wav |
Auto-selects dedicated Danish model |
⚠️ Agent Guidance — Keep Invocations Minimal
CORE RULE: The default command (./scripts/transcribe audio.mp3) is the fastest path. Add flags only when the user explicitly asks for that capability. The router handles backend selection automatically.
⚠️ Model preference: When the router selects faster-whisper, it uses distil-large-v3.5 by default — this is the preferred model (fastest, better accuracy than large-v3-turbo). Don't override unless the user asks.
Probe Mode (--probe)
Use --probe to check audio metadata before deciding whether to transcribe:
./scripts/transcribe --probe audio.mp3
# → {"file": "audio.mp3", "path": "/tmp/audio.mp3", "duration": 2714.5, "duration_human": "45m 14s", "format": "mp3", "channels": 2, "sample_rate": 44100, "bitrate": 128000, "size_mb": 43.2}
- Returns compact JSON with duration, format, channels, sample rate, bitrate, and file size
- No transcription — runs in milliseconds using ffprobe
- Use to implement the "ask before transcribing long files" flow:
- Probe → duration > 10 min → ask user "This is 45 minutes, want me to transcribe?"
- Probe → duration < 2 min → transcribe immediately
- Works with multiple files:
./scripts/transcribe --probe *.mp3
Agent Output Mode (--agent)
Use --agent for structured output the agent can parse directly:
./scripts/transcribe --agent audio.ogg
# → {"text": "Hello world", "duration": 4.2, "language": "en", "language_probability": 0.98, "processing_time": 0.8, "backend": "faster-whisper", "segments": 1, "speakers": null, "word_count": 2, "avg_confidence": 0.94, "file_path": "/tmp/audio.ogg"}
- Emits a single compact JSON line to stdout — no stderr noise (implies
--quiet)
- Core fields:
text, duration, language, language_probability, processing_time, backend, segments (count), speakers (list or null), word_count
- Agent-specific fields:
avg_confidence (0.0–1.0) — average word/segment confidence; use to gauge transcript reliability. Present for faster-whisper (from avg_logprob); absent for Parakeet (NeMo doesn't expose confidence scores)
file_path — absolute path of input file (for multi-file tracking)
output_path — absolute path of written output file (when -o is used)
summary_hint — {"first": "...", "last": "..."} for long transcripts (>400 chars); gives the agent a quick preview without reading the full text
- Combine with
-o to also save full transcript to file: ./scripts/transcribe --agent -o /tmp/transcript.txt audio.mp3
- Use for quick voice message transcription where the agent just needs the text and metadata
Exit Codes
Standardized exit codes for agent error handling:
| Code |
Meaning |
Agent response |
| 0 |
Success |
Normal reply |
| 1 |
General error |
"Transcription failed" |
| 2 |
Missing dependency |
"Backend not set up yet — need to run setup" |
| 3 |
Bad input (file not found, invalid args) |
"Couldn't process that audio file" |
| 4 |
GPU/VRAM error (OOM) |
"GPU ran out of memory — try a smaller model or CPU" |
Chat Media Handling (OpenClaw Agents)
OpenClaw downloads media and provides local file paths in the message context (e.g. <media:voice path="/path/to/audio.ogg"> or <media:audio path="/path/to/file.mp3">).
⚠️ Do NOT auto-transcribe every voice message. Determine intent first:
When to Transcribe Immediately (No Confirmation Needed)
- User explicitly asks for transcription: "transcribe this", "what does this say", "make subtitles for this"
- User sends an audio/video file (not a voice note) with a transcription request
- User sends media in an ongoing transcription conversation (context makes intent clear)
When to Ask First
- User sends a voice message with no context — they're probably talking to you, not asking for a transcript. Respond to the content of their message instead, or ask: "Want me to transcribe this, or were you telling me something?"
- User sends a long audio/video file (>10 min) without explicit instructions — confirm before committing to a long transcription
- User forwards audio from someone else without comment — unclear if they want transcription or something else
Technical Notes
- Voice messages (.ogg opus) are auto-converted by ffmpeg — no special handling needed
- Video files work too — ffmpeg extracts the audio track automatically
- Use
-q (quiet) for short voice messages to suppress stderr progress noise
Example Flows
User wants transcription:
User: Can you transcribe this? [sends audio file]
Agent: Transcribing now...
Agent: [runs ./scripts/transcribe -q /path/to/audio.mp3]
Agent: Here's the transcript: "..."
User is talking to the agent via voice:
User: [sends voice message saying "Hey, what's on my calendar today?"]
Agent: [transcribes silently to understand the request]
Agent: [responds to the calendar question, does NOT parrot back the transcript]
Ambiguous intent (use --probe to check duration first):
User: [sends 45-minute meeting recording, no comment]
Agent: [runs ./scripts/transcribe --probe /path/to/recording.mp3]
Agent: Got a 45-minute recording. Want me to transcribe it? I can also do speaker identification or subtitles if you need those.
Output Length Management for Chat
Transcripts can be very long. Follow these rules to avoid flooding the chat:
- Short audio (<2 min, <~2000 chars): Reply directly with the full transcript text
- Medium audio (2-10 min): Reply with full text; if it exceeds ~3000 chars, consider saving to file and offering a summary
- Long audio (>10 min): Always save to a file (
-o /tmp/transcript.txt), share the file path, and provide a brief summary of the content
- Subtitle/data formats (SRT, VTT, ASS, CSV, JSON, etc.): Always save to file with
-o, tell the user the path
- Search results (
--search): Show directly — they're already concise
- Language detection (
--detect-language-only): Show directly — single line output
When in doubt, save to file and summarize. Users can always ask for the full text.
Do NOT add flags unless explicitly requested:
--backend — unless the user specifically requests a backend
--diarize — unless the user asks "who said what" / "identify speakers"
--translate — unless the user wants audio translated to English
--format srt/vtt/ass/etc. — unless the user asks for subtitles in that format
--long-form — unless the audio is confirmed >24 minutes
--denoise/--normalize — unless the user mentions bad audio quality
--initial-prompt — unless there's domain-specific jargon to prime
--search — unless the user asks to find/locate a word in audio
--detect-chapters — unless the user asks for chapters/sections
--clean-filler — unless the user asks to remove filler words
--word-timestamps — unless the user needs word-level timing
--stream / --streaming — unless the user wants live/progressive output
--clip-timestamps — unless the user wants a specific time range
--temperature 0.0 — unless the model is hallucinating on music/silence
--vad-threshold — unless VAD is aggressively cutting speech or including noise
--min-speakers/--max-speakers — unless you know the speaker count
--hf-token — unless the token is not cached at ~/.cache/huggingface/token
--max-words-per-line / --max-chars-per-line — unless the user asks for subtitle wrapping
--filter-hallucinations — unless the transcript contains obvious artifacts
--merge-sentences — unless the user asks for sentence-level subtitle cues
--channel left|right — unless the user mentions stereo tracks
--detect-paragraphs — unless the user asks for paragraph breaks
--speaker-names — unless the user provides real names (always requires --diarize)
--hotwords — unless the user names specific rare terms
--prefix — unless the user knows the exact words the audio starts with
--detect-language-only — unless the user only wants language ID
--stats-file — unless the user asks for performance stats
--parallel N — only for large CPU batch jobs
--retries N — only for unreliable inputs (URLs, network files)
--burn-in — only when user explicitly asks to embed subtitles into video
--keep-temp — only when the user may re-process the same URL
--output-template — only when user specifies a custom naming pattern
--timestamps (parakeet) — unless the user asks for word-level timestamps
--fast — unless the user explicitly wants speed over accuracy or mentions low VRAM
--multitalker — unless the user mentions overlapping speech or asks for better multi-speaker handling
--resume <path> — unless the user is resuming a batch job that crashed/was interrupted
--no-align — unless the user wants faster processing and doesn't need precise word timestamps
--multitalker-diar-model / --multitalker-asr-model — only when user provides specific model names
- Multi-format (
--format srt,text) — only when user explicitly wants multiple formats; always pair with -o <dir>
--agent — use when you need structured JSON for parsing (e.g. silent transcription of voice messages to understand user intent); don't use when the user explicitly asked for a transcript (just show them the text directly)
--probe — use to check duration before transcribing ambiguous long files; don't probe short voice messages (just transcribe them directly)
Overhead notes:
- Any word-level feature (faster-whisper) auto-runs wav2vec2 alignment (~5-10s overhead)
--diarize adds ~20-30s on top
Search guidance:
--search replaces the normal transcript output — it prints only matching segments with timestamps
- Add
--search-fuzzy only when the user mentions approximate/partial matching
- To save search results to a file, use
-o results.txt
Chapter detection guidance:
- Default
--chapter-gap 8 (8-second silence = new chapter) works for most content; tune down for dense content
--chapter-format youtube (default) outputs YouTube-ready timestamps; use json for programmatic use
- Always use
--chapters-file PATH when combining chapters with a transcript output
- Batch mode limitation:
--chapters-file takes a single path — in batch mode, each file's chapters overwrite the previous
Speaker audio export guidance:
- Always pair
--export-speakers with --diarize
- Requires ffmpeg; outputs
SPEAKER_1.wav, SPEAKER_2.wav, etc. (or real names if --speaker-names is set)
Language map guidance:
- Only use
--language-map in batch mode when the user has confirmed different languages across files
- Inline format:
"interview*.mp3=en,lecture*.mp3=fr" — fnmatch globs on filename
- JSON file format:
@/path/to/map.json
RSS / Podcast guidance:
- Default fetches 5 newest episodes;
--rss-latest 0 for all; --skip-existing to resume safely
- Always use
-o <dir> with --rss — without it, all episode transcripts print to stdout concatenated
Output format for agent relay:
- Text transcript → show directly to user (summarise long ones)
- Subtitle formats (SRT, VTT, ASS, LRC, TTML) → write to
-o file, tell user the path
- Data formats (CSV, TSV, JSON, HTML) → write to
-o file, tell user the path
- Search results → show directly (human-readable)
- Chapter output → show directly or write to
--chapters-file
- Stats output (
--stats-file) → summarise key fields for the user
- Language detection (
--detect-language-only) → print directly; it's a single line
- Multi-format (
--format srt,text) → requires -o <dir>; tell user all paths written
Don't use this skill when:
- User wants text-to-speech (use the
tts tool instead)
- User wants audio editing or music generation
- User wants to summarize a YouTube video without needing a raw transcript (use
summarize skill)
Backend Comparison
| Feature |
🦜 Parakeet |
🗣️ faster-whisper |
| Accuracy |
✅ Best (6.34% avg WER) |
Good (distil: 7.08% WER) |
| Speed |
✅ ~3380× realtime |
~20× realtime |
| Auto punctuation |
✅ Built-in |
❌ Requires post-processing |
| Languages |
25 European |
✅ 99+ worldwide |
| Diarization |
✅ NeMo ClusteringDiarizer |
✅ pyannote speaker ID |
| Translation |
✅ Canary: EN/FR/DE/ES |
✅ Any → English |
| Language detection |
✅ Auto-detect + output |
✅ --detect-language-only |
| Chapters/search |
✅ Shared |
✅ Shared |
| Output formats |
✅ All 10 formats |
✅ All 10 formats |
| Audio preprocessing |
✅ --denoise, --normalize |
✅ --denoise, --normalize |
| Filler removal |
✅ --clean-filler |
✅ --clean-filler |
| Long audio |
✅ Up to 3 hours |
Limited by VRAM |
| Streaming |
✅ Chunked inference |
✅ Segment streaming |
| RSS/podcast |
✅ --rss |
✅ --rss |
| VRAM usage |
~2GB |
~1.5GB (distil) |
| Burn-in subtitles |
✅ --burn-in |
✅ --burn-in |
| Initial prompt |
❌ |
✅ Domain jargon priming |
| Word timestamps |
✅ NeMo + wav2vec2 aligned |
✅ wav2vec2 aligned (~10ms) |
| Custom models |
✅ Any NeMo / HuggingFace |
✅ CTranslate2 / HuggingFace |
| Multitalker |
✅ Sortformer + per-speaker |
❌ |
| Fast/small model |
✅ 110M (--fast) |
✅ distil-small.en (166M) |
| Batch resume |
✅ --resume |
✅ --resume |
| Noise handling |
Good (built-in robustness) |
✅ --denoise, --normalize |
Setup Details
For first-time setup, see ⚡ First-Time Setup at the top. This section is supplementary reference.
What Gets Installed (and What Doesn't)
Quickstart installs one backend — the best for the user's hardware. The second backend auto-installs later only if a feature needs it. Heavy optional deps are deferred until first use.
| Hardware |
Backend |
Setup download |
Model (first use) |
What triggers more downloads |
| NVIDIA GPU |
Parakeet |
~5 GB (PyTorch+CUDA+NeMo) |
~1.2 GB |
--translate or non-EU language → faster-whisper |
| CPU / macOS |
faster-whisper |
~300 MB (CTranslate2) |
~756 MB |
--diarize → PyTorch (~2.8 GB); --fast/--multitalker → Parakeet |
Why the size difference? Parakeet needs PyTorch+CUDA upfront (~5 GB, NeMo depends on it). faster-whisper uses CTranslate2 directly — PyTorch is only pulled in for diarization/alignment features.
Parakeet uses nemo_toolkit[asr-only] — this skips ~19 training-only packages (wandb, transformers, datasets, lightning, pandas, peft, etc.) saving ~400 MB vs [asr].
Optional Extras (Not Needed for Basic Transcription)
| Feature |
Install |
Auto-installs? |
| Non-WAV audio (mp3/m4a/mp4) |
sudo apt install ffmpeg (Linux) · brew install ffmpeg (macOS) |
No — quickstart reports if missing |
| YouTube/URL downloads |
pipx install yt-dlp |
No |
| Speaker diarization (faster-whisper) |
huggingface-cli login + accept model |
Partial (PyTorch auto-installs; token + model agreement manual) |
| Both backends |
--quickstart --all --json |
Yes (second backend auto-installs on first use of a feature that needs it) |
Manual Backend Setup
./scripts/transcribe --check # Status check (human-readable)
./scripts/transcribe --check --json # Status check (agent-parseable)
./scripts/transcribe --setup parakeet # Best accuracy/speed (needs GPU)
./scripts/transcribe --setup faster-whisper # Translation, 99+ languages, CPU-compatible
./scripts/transcribe --setup all --diarize # Full install with diarization
Hard Requirements & Install Strategy
Hard requirements: Python 3.10+ only. Everything else is installed by --quickstart or auto-installs on first use.
Lean install strategy:
- faster-whisper:
300 MB base (CTranslate2, no PyTorch). PyTorch (2.8 GB) deferred until --diarize.
- Parakeet: ~5 GB base (NeMo + PyTorch CUDA). Uses
nemo_toolkit[asr-only] — skips training-only packages.
- System deps:
--quickstart does NOT auto-install system packages (ffmpeg, yt-dlp). It reports them as missing; install them separately if needed.
Auto-install behavior: Backends lazy-load on first use. Optional deps (like pyannote for diarization) auto-install when you use the feature that needs them. In --agent mode, setup emits structured JSON status to stderr.
Platform Support
| Platform |
Acceleration |
Speed |
| Linux + NVIDIA GPU |
CUDA |
Parakeet ~3380× RT, Whisper ~20× RT |
| WSL2 + NVIDIA GPU |
CUDA |
Parakeet ~3380× RT, Whisper ~20× RT |
| macOS Apple Silicon |
CPU |
Whisper ~3-5× RT (Parakeet limited) |
| macOS Intel |
CPU |
Whisper ~1-2× RT |
| Linux (no GPU) |
CPU |
~1× RT |
GPU Troubleshooting
If setup didn't detect your GPU, manually install PyTorch with CUDA:
# For CUDA 12.x (in the backend's venv)
uv pip install --python .venv/bin/python torch --index-url https://download.pytorch.org/whl/cu121
WSL2 users: Ensure you have the NVIDIA CUDA drivers for WSL installed on the Windows side.
Options
Super-Transcribe Routing Options
--quickstart One-command setup: install best backend for hardware (lean)
--quickstart --all Install both backends (Parakeet + faster-whisper)
--quickstart --json Same, structured JSON output for agent parsing
--quickstart --dry-run --json Preview what would be installed with estimated sizes
--check Check prerequisites + backend status (exit 0=ready, 2=not ready)
--check --json Same check, compact JSON with estimated install sizes
--backend <name> Force a backend: faster-whisper | parakeet | fw | pk
--backends List available/installed backends and exit
--probe Quick audio metadata (duration, format, channels) — no transcription
--setup <backend> Pre-install a backend: faster-whisper | parakeet | all
--help-routing Show detailed auto-routing logic
--fast Use small 110M Parakeet model (quick, lower accuracy)
--multitalker Multi-speaker pipeline with overlapped speech handling
--resume <path> Resume batch processing from checkpoint file
--version Show super-transcribe + backend versions
Shared Options (Work with Both Backends)
AUDIO Audio file(s), directory, glob, or URL
-f, --format FMT text | json | srt | vtt | ass | lrc | ttml | csv | tsv | html
-o, --output PATH Output file or directory
-m, --model NAME Model name (backend-specific)
-l, --language CODE Language code
--max-words-per-line Subtitle word wrapping
--max-chars-per-line Subtitle character wrapping
--batch-size N Inference batch size
--skip-existing Skip already-transcribed files
--resume PATH Resume batch from checkpoint file (skips completed files)
--device DEV auto | cpu | cuda
-q, --quiet Suppress progress messages
--version Print version info
--diarize Speaker diarization
--min-speakers N Min speakers hint for diarization
--max-speakers N Max speakers hint for diarization
--speaker-names LIST Replace SPEAKER_1, SPEAKER_2 with names
--export-speakers DIR Export each speaker's audio to WAV files
--search TERM Search transcript for TERM
--search-fuzzy Fuzzy/approximate search matching
--detect-chapters Detect chapter breaks from silence gaps
--chapter-gap SEC Min silence gap for chapter break (default: 8.0)
--chapters-file PATH Write chapter markers to file
--chapter-format FMT youtube | text | json (default: youtube)
--clean-filler Remove hesitation fillers (um, uh, etc.)
--filter-hallucinations Filter common hallucination patterns
--merge-sentences Merge segments into sentence chunks
--detect-paragraphs Insert paragraph breaks based on gaps
--paragraph-gap SEC Min gap for paragraph break (default: 3.0)
--normalize EBU R128 volume normalization
--denoise High-pass + FFT noise reduction
--channel CH left | right | mix (default: mix)
--burn-in OUTPUT Burn subtitles into video file
--rss URL Podcast RSS feed to transcribe
--rss-latest N Latest N episodes from RSS (default: 5)
--stats-file PATH Write performance stats JSON sidecar
Faster-Whisper Only Options
Model & Language:
--revision REV Model revision (git branch/tag/commit) to pin a specific version
--initial-prompt TEXT Prompt to condition the model (terminology, formatting style)
--prefix TEXT Prefix to condition the first segment (e.g. known starting words)
--hotwords WORDS Space-separated hotwords to boost recognition
--translate Translate any language to English (instead of transcribing)
--multilingual Enable multilingual/code-switching mode
--hf-token TOKEN HuggingFace token for private/gated models and diarization
--model-dir PATH Custom model cache directory (default: ~/.cache/huggingface/)
Output:
--word-timestamps Include word-level timestamps (wav2vec2 aligned automatically)
--stream Output segments as they are transcribed (disables diarize/alignment)
--output-template TPL Batch output filename template ({stem}, {lang}, {ext}, {model})
Inference Tuning:
--beam-size N Beam search size; higher = more accurate but slower (default: 5)
--temperature T Sampling temperature or comma-separated fallback list
--no-speech-threshold PROB Mark segments as silence (default: 0.6)
--no-vad Disable voice activity detection
--vad-threshold T VAD speech probability threshold (default: 0.5)
--vad-neg-threshold T VAD negative threshold for ending speech
--min-speech-duration MS Minimum speech segment duration in ms
--max-speech-duration SEC Maximum speech segment duration
--min-silence-duration MS Minimum silence before splitting (default: 2000)
--speech-pad MS Padding around speech segments (default: 400)
--no-batch Disable batched inference
--hallucination-silence-threshold SEC Skip silent sections where model hallucinates
--no-condition-on-previous-text Don't condition on previous text (auto-enabled for distil models)
--condition-on-previous-text Override auto-disable for distil models
--compression-ratio-threshold RATIO Filter segments above this ratio (default: 2.4)
--log-prob-threshold PROB Filter segments below avg log probability (default: -1.0)
--max-new-tokens N Maximum tokens per segment
--clip-timestamps RANGE Transcribe specific time ranges: '30,60' or '0,30;60,90'
--progress Show transcription progress bar
--best-of N Candidates when sampl
…(truncated)
1---
2name: super-transcribe
3description: "Unified speech-to-text skill. Use when the user asks to transcribe audio or video, generate subtitles, identify speakers, translate speech, search transcripts, diarize meetings, or perform any speech-to-text task. Also use when a voice message or audio file appears in chat and the user's intent to transcribe it is very clear."
4version: 1.0.2
5author: Sarah Mak
6tags:
7 [
8 "audio",
9 "transcription",
10 "whisper",
11 "parakeet",
12 "speech-to-text",
13 "ml",
14 "cuda",
15 "gpu",
16 "subtitles",
17 "diarization",
18 "podcast",
19 "unified",
20 ]
21platforms: ["linux", "wsl2"]
22metadata:
23 source: https://skillmd.com/skills/modbender/super-transcribe
24 openclaw:
25 emoji: 🎙️
26 requires:
27 bins:
28 - python3
29 optionalBins:
30 - ffmpeg
31 - yt-dlp
32 optionalPaths:
33 - ~/.cache/huggingface/token
34---
35
36# 🎙️ Super-Transcribe — Unified Speech-to-Text
37
38A self-contained transcription skill with two bundled backends that intelligently routes based on task requirements:
39
40- **🦜 Parakeet** (NVIDIA NeMo) — best accuracy (6.34% WER), ~3380× realtime, auto-punctuation, 25 European languages, NeMo diarization
41- **🗣️ faster-whisper** (CTranslate2) — translation, 99+ languages, initial prompting, advanced inference tuning
42
43**Lazy loading:** each backend sets up its own venv on first use. No pre-configuration needed — just transcribe and the right backend installs itself.
44
45## ⚡ First-Time Setup
46
47Follow these 3 steps on first use. Goal: install **only** what this user's hardware needs — nothing extra.
48
49### Step 1 — Check readiness (instant, no downloads)
50
51```bash
52./scripts/transcribe --check --json
53```
54
55| `action` result | What to do |
56| ------------------ | ----------------------------------------------------- |
57| `"ready"` | Skip setup — already installed. Go straight to usage. |
58| `"install_python"` | Tell user to install Python 3.10+ first, then re-run |
59| `"run_quickstart"` | Continue to Step 2 |
60
61Key fields: `gpu` (name + VRAM), `ffmpeg`, `backends` status, `estimated_install` (download size for recommended backend), `missing_optional` (non-blocking items — **do NOT eagerly install these**).
62
63### Step 2 — Preview the install (no downloads)
64
65```bash
66./scripts/transcribe --quickstart --dry-run --json
67```
68
69**Tell the user what will be downloaded before proceeding.** Relay from the `estimated` field:
70
71- Which backend and why it was chosen
72- Total download size (setup + model on first use)
73
74Example message: _"Your system has an NVIDIA GPU, so I'd install the Parakeet backend for best accuracy. That's ~5GB for setup plus ~1.2GB for the model on first use (~6.2GB total). OK to proceed?"_
75
76For GPU systems where the user wants a smaller install, see **Lean Install Option** below.
77
78### Step 3 — Install (after user confirms)
79
80```bash
81./scripts/transcribe --quickstart --json
82```
83
84`ok: true` → backend installed. First transcription downloads model weights (~1-2 GB, cached permanently).
85`ok: false` → check `errors` array for what failed.
86
87### What Gets Installed
88
89**Quickstart installs exactly ONE backend** — the best for detected hardware:
90
91| Hardware | Backend installed | Setup download | Model (first use) | Total |
92| ----------- | ----------------- | --------------------------------- | ----------------- | ------- |
93| NVIDIA GPU | Parakeet (NeMo) | ~5 GB (PyTorch + CUDA + NeMo) | ~1.2 GB | ~6.2 GB |
94| CPU / macOS | faster-whisper | ~300 MB (CTranslate2, no PyTorch) | ~756 MB | ~1 GB |
95
96**NOT installed by quickstart** (deferred until actually needed):
97
98- **Second backend** — auto-installs only when the user triggers a feature that needs it (`--translate` or non-EU language → faster-whisper; `--fast`/`--multitalker` → Parakeet)
99- **System deps** — install separately **only if the user needs them**:
100 - `ffmpeg` — only for non-WAV input (mp3/m4a/mp4/ogg). Install: `sudo apt install ffmpeg`
101 - `yt-dlp` — only for YouTube/URL downloads. Install: `pipx install yt-dlp`
102 - HuggingFace token — only for `--diarize` with faster-whisper. Setup: `huggingface-cli login`
103- **PyTorch for faster-whisper** — deferred until `--diarize` is first used (saves ~2.8 GB on initial install)
104
105**Do NOT pre-install optional deps.** Wait until the user actually needs a feature — the script auto-installs or clearly reports what's missing at that point.
106
107### Lean Install Option
108
109If a GPU user wants a smaller download (~1 GB instead of ~6.2 GB):
110
111```bash
112./scripts/transcribe --setup faster-whisper
113```
114
115Trade-off: ~20× realtime speed (vs ~3380× with Parakeet), no built-in punctuation. Only offer this if the user explicitly asks for a minimal install or has limited bandwidth/disk.
116
117> Supplementary info: see **Setup Details** further down.
118
119---
120
121> **✅ Setup done.** Everything below is usage reference — read on demand.
122
123---
124
125## When to Use
126
127Use this skill for **any speech-to-text task**. It replaces both the `faster-whisper` and `parakeet` skills as your single entry point.
128
129**Trigger phrases:**
130"transcribe this", "speech to text", "what did they say", "make a transcript",
131"subtitle this video", "who's speaking", "translate this audio", "transcribe this podcast",
132"transcribe with parakeet", "transcribe with whisper", "best accuracy transcription",
133"transcribe in French", "diarize this meeting", "find where X is mentioned",
134"audio to text", "translate to English", "search transcript for", "when did they say",
135"at what timestamp", "add chapters", "detect chapters", "find breaks in the audio",
136"table of contents for this recording", "TTML subtitles", "DFXP subtitles",
137"broadcast format subtitles", "Netflix format", "ASS subtitles", "aegisub format",
138"LRC subtitles", "timed lyrics", "karaoke subtitles", "HTML transcript",
139"confidence-colored transcript", "separate audio per speaker", "export speaker audio",
140"transcript as CSV", "spreadsheet output", "podcast RSS feed", "per-file language",
141"remove filler words", "clean up ums and uhs", "transcribe left channel",
142"wrap subtitle lines", "character limit per line", "detect paragraphs"
143
144## Auto-Routing Logic
145
146The router picks the backend automatically:
147
148```
149┌─────────────────────────────────────────────┐
150│ --backend specified? │
151│ YES → use that backend │
152│ NO ↓ │
153├─────────────────────────────────────────────┤
154│ --fast or --multitalker? │
155│ YES → parakeet │
156│ NO ↓ │
157├─────────────────────────────────────────────┤
158│ Needs faster-whisper-only feature? │
159│ (translate, initial-prompt, hotwords, │
160│ multilingual, non-EU language, advanced │
161│ inference tuning params) │
162│ YES → faster-whisper │
163│ NO ↓ │
164├─────────────────────────────────────────────┤
165│ Needs parakeet-only feature? │
166│ (--long-form, --streaming, --no-align) │
167│ YES → parakeet │
168│ NO ↓ │
169├─────────────────────────────────────────────┤
170│ Default: prefer Parakeet (best accuracy │
171│ + speed + auto-punctuation) │
172│ Fall back to faster-whisper if Parakeet │
173│ not installed │
174└─────────────────────────────────────────────┘
175```
176
177## Quick Reference
178
179### Basic (Auto-Routes to Best Available)
180
181| Task | Command |
182| ------------------------ | ---------------------------------------------------------------------- |
183| **Basic transcription** | `./scripts/transcribe audio.mp3` |
184| **SRT subtitles** | `./scripts/transcribe audio.mp3 --format srt -o subs.srt` |
185| **VTT subtitles** | `./scripts/transcribe audio.mp3 --format vtt -o subs.vtt` |
186| **ASS subtitles** | `./scripts/transcribe audio.mp3 --format ass -o subs.ass` |
187| **LRC lyrics** | `./scripts/transcribe audio.mp3 --format lrc -o lyrics.lrc` |
188| **TTML broadcast** | `./scripts/transcribe audio.mp3 --format ttml -o subs.ttml` |
189| **CSV spreadsheet** | `./scripts/transcribe audio.mp3 --format csv -o out.csv` |
190| **JSON output** | `./scripts/transcribe audio.mp3 --format json -o out.json` |
191| **YouTube/URL** | `./scripts/transcribe https://youtube.com/watch?v=...` |
192| **Batch process** | `./scripts/transcribe *.mp3 -o ./transcripts/` |
193| **Force backend** | `./scripts/transcribe --backend parakeet audio.mp3` |
194| **List backends** | `./scripts/transcribe --backends` |
195| **Show version** | `./scripts/transcribe --version` |
196| **Probe metadata** | `./scripts/transcribe --probe audio.mp3` |
197| **Fast mode (110M)** | `./scripts/transcribe --fast audio.mp3` |
198| **Multitalker** | `./scripts/transcribe --multitalker meeting.wav` |
199| **Resume batch** | `./scripts/transcribe *.mp3 --resume progress.json -o ./out/` |
200| **Exact model** | `./scripts/transcribe -m nvidia/parakeet-tdt-1.1b audio.wav` |
201| **Model alias** | `./scripts/transcribe --backend pk -m 1.1b audio.wav` |
202| **Speaker diarization** | `./scripts/transcribe meeting.wav --diarize` |
203| **Search transcript** | `./scripts/transcribe audio.mp3 --search "keyword"` |
204| **Detect chapters** | `./scripts/transcribe audio.mp3 --detect-chapters` |
205| **Clean filler words** | `./scripts/transcribe audio.mp3 --clean-filler` |
206| **Denoise audio** | `./scripts/transcribe audio.mp3 --denoise` |
207| **Podcast RSS feed** | `./scripts/transcribe --rss https://feed.url` |
208| **Burn subtitles** | `./scripts/transcribe video.mp4 --burn-in out.mp4` |
209| **Name speakers** | `./scripts/transcribe audio.mp3 --diarize --speaker-names "Alice,Bob"` |
210| **Export speaker audio** | `./scripts/transcribe audio.mp3 --diarize --export-speakers ./spk/` |
211
212### Routes to Faster-Whisper Automatically
213
214| Task | Command | Why |
215| ------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
216| **Translate → English** | `./scripts/transcribe audio.mp3 --translate` | Whisper-specific feature |
217| **Canary translation** | `./scripts/transcribe audio.mp3 --backend parakeet --translate --source-lang fr --target-lang de` | NeMo Canary (EN/FR/DE/ES bidirectional) |
218| **Domain jargon** | `./scripts/transcribe audio.mp3 --initial-prompt "Kubernetes"` | Whisper-specific prompting |
219| **Non-European language** | `./scripts/transcribe audio.mp3 -l ja` | Parakeet: 25 EU langs only |
220| **Multilingual mode** | `./scripts/transcribe audio.mp3 --multilingual` | Whisper-specific feature |
221| **Hotwords boost** | `./scripts/transcribe audio.mp3 --hotwords 'JIRA Kubernetes'` | Whisper-specific feature |
222| **Prefix conditioning** | `./scripts/transcribe audio.mp3 --prefix 'Good morning,'` | Whisper-specific feature |
223| **Clip time range** | `./scripts/transcribe audio.mp3 --clip-timestamps "30,60"` | Whisper-specific feature |
224| **Detect language only** | `./scripts/transcribe audio.mp3 --detect-language-only` | Routes to fw by default; use `--backend parakeet` for Parakeet detection |
225| **Parallel batch** | `./scripts/transcribe *.mp3 --parallel 4 -o ./out/` | Whisper-specific feature |
226
227### Routes to Parakeet Automatically
228
229| Task | Command | Why |
230| ------------------------------ | ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
231| **Long audio (>24 min)** | `./scripts/transcribe lecture.wav --long-form` | Parakeet-only: local attention mode |
232| **Streaming output** | `./scripts/transcribe audio.wav --streaming` | Parakeet-only: chunked inference |
233| **Fast / low VRAM (110M)** | `./scripts/transcribe --fast audio.mp3` | Parakeet 110M model (~2GB VRAM) |
234| **Multitalker / overlap** | `./scripts/transcribe --multitalker meeting.wav` | Sortformer + multitalker pipeline |
235| **Skip alignment** | `./scripts/transcribe audio.wav --no-align` | Parakeet-only: faster, less precise |
236| **Canary translation** | `./scripts/transcribe --backend parakeet --translate --source-lang fr --target-lang de audio.wav` | Parakeet-only: Canary bidirectional EU translation |
237| **Detect language (Parakeet)** | `./scripts/transcribe --backend parakeet --detect-language-only audio.wav` | Parakeet language detection (requires `--backend parakeet`) |
238| **Danish transcription** | `./scripts/transcribe -l da audio.wav` | Auto-selects dedicated Danish model |
239
240## ⚠️ Agent Guidance — Keep Invocations Minimal
241
242**CORE RULE:** The default command (`./scripts/transcribe audio.mp3`) is the fastest path. Add flags only when the user explicitly asks for that capability. The router handles backend selection automatically.
243
244**⚠️ Model preference:** When the router selects faster-whisper, it uses `distil-large-v3.5` by default — this is the preferred model (fastest, better accuracy than large-v3-turbo). Don't override unless the user asks.
245
246### Probe Mode (`--probe`)
247
248Use `--probe` to check audio metadata before deciding whether to transcribe:
249
250```bash
251./scripts/transcribe --probe audio.mp3
252# → {"file": "audio.mp3", "path": "/tmp/audio.mp3", "duration": 2714.5, "duration_human": "45m 14s", "format": "mp3", "channels": 2, "sample_rate": 44100, "bitrate": 128000, "size_mb": 43.2}
253```
254
255- Returns **compact JSON** with duration, format, channels, sample rate, bitrate, and file size
256- No transcription — runs in milliseconds using ffprobe
257- Use to implement the "ask before transcribing long files" flow:
258 - Probe → duration > 10 min → ask user "This is 45 minutes, want me to transcribe?"
259 - Probe → duration < 2 min → transcribe immediately
260- Works with multiple files: `./scripts/transcribe --probe *.mp3`
261
262### Agent Output Mode (`--agent`)
263
264Use `--agent` for structured output the agent can parse directly:
265
266```bash
267./scripts/transcribe --agent audio.ogg
268# → {"text": "Hello world", "duration": 4.2, "language": "en", "language_probability": 0.98, "processing_time": 0.8, "backend": "faster-whisper", "segments": 1, "speakers": null, "word_count": 2, "avg_confidence": 0.94, "file_path": "/tmp/audio.ogg"}
269```
270
271- Emits a **single compact JSON line** to stdout — no stderr noise (implies `--quiet`)
272- Core fields: `text`, `duration`, `language`, `language_probability`, `processing_time`, `backend`, `segments` (count), `speakers` (list or null), `word_count`
273- Agent-specific fields:
274 - `avg_confidence` (0.0–1.0) — average word/segment confidence; use to gauge transcript reliability. Present for faster-whisper (from `avg_logprob`); absent for Parakeet (NeMo doesn't expose confidence scores)
275 - `file_path` — absolute path of input file (for multi-file tracking)
276 - `output_path` — absolute path of written output file (when `-o` is used)
277 - `summary_hint` — `{"first": "...", "last": "..."}` for long transcripts (>400 chars); gives the agent a quick preview without reading the full text
278- Combine with `-o` to also save full transcript to file: `./scripts/transcribe --agent -o /tmp/transcript.txt audio.mp3`
279- Use for quick voice message transcription where the agent just needs the text and metadata
280
281### Exit Codes
282
283Standardized exit codes for agent error handling:
284
285| Code | Meaning | Agent response |
286| ---- | ---------------------------------------- | ---------------------------------------------------- |
287| 0 | Success | Normal reply |
288| 1 | General error | "Transcription failed" |
289| 2 | Missing dependency | "Backend not set up yet — need to run setup" |
290| 3 | Bad input (file not found, invalid args) | "Couldn't process that audio file" |
291| 4 | GPU/VRAM error (OOM) | "GPU ran out of memory — try a smaller model or CPU" |
292
293### Chat Media Handling (OpenClaw Agents)
294
295OpenClaw downloads media and provides local file paths in the message context (e.g. `<media:voice path="/path/to/audio.ogg">` or `<media:audio path="/path/to/file.mp3">`).
296
297**⚠️ Do NOT auto-transcribe every voice message.** Determine intent first:
298
299#### When to Transcribe Immediately (No Confirmation Needed)
300
301- User **explicitly asks** for transcription: "transcribe this", "what does this say", "make subtitles for this"
302- User sends an **audio/video file** (not a voice note) with a transcription request
303- User sends media **in an ongoing transcription conversation** (context makes intent clear)
304
305#### When to Ask First
306
307- User sends a **voice message with no context** — they're probably talking _to_ you, not asking for a transcript. Respond to the content of their message instead, or ask: "Want me to transcribe this, or were you telling me something?"
308- User sends a **long audio/video file** (>10 min) without explicit instructions — confirm before committing to a long transcription
309- User forwards audio from someone else without comment — unclear if they want transcription or something else
310
311#### Technical Notes
312
313- Voice messages (.ogg opus) are auto-converted by ffmpeg — no special handling needed
314- Video files work too — ffmpeg extracts the audio track automatically
315- Use `-q` (quiet) for short voice messages to suppress stderr progress noise
316
317#### Example Flows
318
319**User wants transcription:**
320
321```
322User: Can you transcribe this? [sends audio file]
323Agent: Transcribing now...
324Agent: [runs ./scripts/transcribe -q /path/to/audio.mp3]
325Agent: Here's the transcript: "..."
326```
327
328**User is talking to the agent via voice:**
329
330```
331User: [sends voice message saying "Hey, what's on my calendar today?"]
332Agent: [transcribes silently to understand the request]
333Agent: [responds to the calendar question, does NOT parrot back the transcript]
334```
335
336**Ambiguous intent (use --probe to check duration first):**
337
338```
339User: [sends 45-minute meeting recording, no comment]
340Agent: [runs ./scripts/transcribe --probe /path/to/recording.mp3]
341Agent: Got a 45-minute recording. Want me to transcribe it? I can also do speaker identification or subtitles if you need those.
342```
343
344### Output Length Management for Chat
345
346Transcripts can be very long. Follow these rules to avoid flooding the chat:
347
348- **Short audio (<2 min, <~2000 chars):** Reply directly with the full transcript text
349- **Medium audio (2-10 min):** Reply with full text; if it exceeds ~3000 chars, consider saving to file and offering a summary
350- **Long audio (>10 min):** Always save to a file (`-o /tmp/transcript.txt`), share the file path, and provide a brief summary of the content
351- **Subtitle/data formats** (SRT, VTT, ASS, CSV, JSON, etc.): Always save to file with `-o`, tell the user the path
352- **Search results** (`--search`): Show directly — they're already concise
353- **Language detection** (`--detect-language-only`): Show directly — single line output
354
355When in doubt, save to file and summarize. Users can always ask for the full text.
356
357**Do NOT add flags unless explicitly requested:**
358
359- `--backend` — unless the user specifically requests a backend
360- `--diarize` — unless the user asks "who said what" / "identify speakers"
361- `--translate` — unless the user wants audio translated to English
362- `--format srt/vtt/ass/etc.` — unless the user asks for subtitles in that format
363- `--long-form` — unless the audio is confirmed >24 minutes
364- `--denoise`/`--normalize` — unless the user mentions bad audio quality
365- `--initial-prompt` — unless there's domain-specific jargon to prime
366- `--search` — unless the user asks to find/locate a word in audio
367- `--detect-chapters` — unless the user asks for chapters/sections
368- `--clean-filler` — unless the user asks to remove filler words
369- `--word-timestamps` — unless the user needs word-level timing
370- `--stream` / `--streaming` — unless the user wants live/progressive output
371- `--clip-timestamps` — unless the user wants a specific time range
372- `--temperature 0.0` — unless the model is hallucinating on music/silence
373- `--vad-threshold` — unless VAD is aggressively cutting speech or including noise
374- `--min-speakers`/`--max-speakers` — unless you know the speaker count
375- `--hf-token` — unless the token is not cached at `~/.cache/huggingface/token`
376- `--max-words-per-line` / `--max-chars-per-line` — unless the user asks for subtitle wrapping
377- `--filter-hallucinations` — unless the transcript contains obvious artifacts
378- `--merge-sentences` — unless the user asks for sentence-level subtitle cues
379- `--channel left|right` — unless the user mentions stereo tracks
380- `--detect-paragraphs` — unless the user asks for paragraph breaks
381- `--speaker-names` — unless the user provides real names (always requires `--diarize`)
382- `--hotwords` — unless the user names specific rare terms
383- `--prefix` — unless the user knows the exact words the audio starts with
384- `--detect-language-only` — unless the user only wants language ID
385- `--stats-file` — unless the user asks for performance stats
386- `--parallel N` — only for large CPU batch jobs
387- `--retries N` — only for unreliable inputs (URLs, network files)
388- `--burn-in` — only when user explicitly asks to embed subtitles into video
389- `--keep-temp` — only when the user may re-process the same URL
390- `--output-template` — only when user specifies a custom naming pattern
391- `--timestamps` (parakeet) — unless the user asks for word-level timestamps
392- `--fast` — unless the user explicitly wants speed over accuracy or mentions low VRAM
393- `--multitalker` — unless the user mentions overlapping speech or asks for better multi-speaker handling
394- `--resume <path>` — unless the user is resuming a batch job that crashed/was interrupted
395- `--no-align` — unless the user wants faster processing and doesn't need precise word timestamps
396- `--multitalker-diar-model` / `--multitalker-asr-model` — only when user provides specific model names
397- Multi-format (`--format srt,text`) — only when user explicitly wants multiple formats; always pair with `-o <dir>`
398- `--agent` — use when you need structured JSON for parsing (e.g. silent transcription of voice messages to understand user intent); don't use when the user explicitly asked for a transcript (just show them the text directly)
399- `--probe` — use to check duration before transcribing ambiguous long files; don't probe short voice messages (just transcribe them directly)
400
401**Overhead notes:**
402
403- Any word-level feature (faster-whisper) auto-runs wav2vec2 alignment (~5-10s overhead)
404- `--diarize` adds ~20-30s on top
405
406**Search guidance:**
407
408- `--search` **replaces** the normal transcript output — it prints only matching segments with timestamps
409- Add `--search-fuzzy` only when the user mentions approximate/partial matching
410- To save search results to a file, use `-o results.txt`
411
412**Chapter detection guidance:**
413
414- Default `--chapter-gap 8` (8-second silence = new chapter) works for most content; tune down for dense content
415- `--chapter-format youtube` (default) outputs YouTube-ready timestamps; use `json` for programmatic use
416- **Always use `--chapters-file PATH`** when combining chapters with a transcript output
417- **Batch mode limitation:** `--chapters-file` takes a single path — in batch mode, each file's chapters overwrite the previous
418
419**Speaker audio export guidance:**
420
421- Always pair `--export-speakers` with `--diarize`
422- Requires ffmpeg; outputs `SPEAKER_1.wav`, `SPEAKER_2.wav`, etc. (or real names if `--speaker-names` is set)
423
424**Language map guidance:**
425
426- Only use `--language-map` in batch mode when the user has confirmed different languages across files
427- Inline format: `"interview*.mp3=en,lecture*.mp3=fr"` — fnmatch globs on filename
428- JSON file format: `@/path/to/map.json`
429
430**RSS / Podcast guidance:**
431
432- Default fetches 5 newest episodes; `--rss-latest 0` for all; `--skip-existing` to resume safely
433- **Always use `-o <dir>`** with `--rss` — without it, all episode transcripts print to stdout concatenated
434
435**Output format for agent relay:**
436
437- **Text transcript** → show directly to user (summarise long ones)
438- **Subtitle formats** (SRT, VTT, ASS, LRC, TTML) → write to `-o` file, tell user the path
439- **Data formats** (CSV, TSV, JSON, HTML) → write to `-o` file, tell user the path
440- **Search results** → show directly (human-readable)
441- **Chapter output** → show directly or write to `--chapters-file`
442- **Stats output** (`--stats-file`) → summarise key fields for the user
443- **Language detection** (`--detect-language-only`) → print directly; it's a single line
444- **Multi-format** (`--format srt,text`) → requires `-o <dir>`; tell user all paths written
445
446**Don't use this skill when:**
447
448- User wants **text-to-speech** (use the `tts` tool instead)
449- User wants **audio editing** or music generation
450- User wants to **summarize** a YouTube video without needing a raw transcript (use `summarize` skill)
451
452## Backend Comparison
453
454| Feature | 🦜 Parakeet | 🗣️ faster-whisper |
455| ----------------------- | --------------------------- | ---------------------------- |
456| **Accuracy** | ✅ Best (6.34% avg WER) | Good (distil: 7.08% WER) |
457| **Speed** | ✅ ~3380× realtime | ~20× realtime |
458| **Auto punctuation** | ✅ Built-in | ❌ Requires post-processing |
459| **Languages** | 25 European | ✅ 99+ worldwide |
460| **Diarization** | ✅ NeMo ClusteringDiarizer | ✅ pyannote speaker ID |
461| **Translation** | ✅ Canary: EN/FR/DE/ES | ✅ Any → English |
462| **Language detection** | ✅ Auto-detect + output | ✅ --detect-language-only |
463| **Chapters/search** | ✅ Shared | ✅ Shared |
464| **Output formats** | ✅ All 10 formats | ✅ All 10 formats |
465| **Audio preprocessing** | ✅ --denoise, --normalize | ✅ --denoise, --normalize |
466| **Filler removal** | ✅ --clean-filler | ✅ --clean-filler |
467| **Long audio** | ✅ Up to 3 hours | Limited by VRAM |
468| **Streaming** | ✅ Chunked inference | ✅ Segment streaming |
469| **RSS/podcast** | ✅ --rss | ✅ --rss |
470| **VRAM usage** | ~2GB | ~1.5GB (distil) |
471| **Burn-in subtitles** | ✅ --burn-in | ✅ --burn-in |
472| **Initial prompt** | ❌ | ✅ Domain jargon priming |
473| **Word timestamps** | ✅ NeMo + wav2vec2 aligned | ✅ wav2vec2 aligned (~10ms) |
474| **Custom models** | ✅ Any NeMo / HuggingFace | ✅ CTranslate2 / HuggingFace |
475| **Multitalker** | ✅ Sortformer + per-speaker | ❌ |
476| **Fast/small model** | ✅ 110M (--fast) | ✅ distil-small.en (166M) |
477| **Batch resume** | ✅ --resume | ✅ --resume |
478| **Noise handling** | Good (built-in robustness) | ✅ --denoise, --normalize |
479
480## Setup Details
481
482> For first-time setup, see **⚡ First-Time Setup** at the top. This section is supplementary reference.
483
484### What Gets Installed (and What Doesn't)
485
486Quickstart installs **one backend** — the best for the user's hardware. The second backend auto-installs later only if a feature needs it. Heavy optional deps are deferred until first use.
487
488| Hardware | Backend | Setup download | Model (first use) | What triggers more downloads |
489| ----------- | -------------- | ------------------------- | ----------------- | -------------------------------------------------------------------- |
490| NVIDIA GPU | Parakeet | ~5 GB (PyTorch+CUDA+NeMo) | ~1.2 GB | `--translate` or non-EU language → faster-whisper |
491| CPU / macOS | faster-whisper | ~300 MB (CTranslate2) | ~756 MB | `--diarize` → PyTorch (~2.8 GB); `--fast`/`--multitalker` → Parakeet |
492
493**Why the size difference?** Parakeet needs PyTorch+CUDA upfront (~5 GB, NeMo depends on it). faster-whisper uses CTranslate2 directly — PyTorch is only pulled in for diarization/alignment features.
494
495**Parakeet uses `nemo_toolkit[asr-only]`** — this skips ~19 training-only packages (wandb, transformers, datasets, lightning, pandas, peft, etc.) saving ~400 MB vs `[asr]`.
496
497### Optional Extras (Not Needed for Basic Transcription)
498
499| Feature | Install | Auto-installs? |
500| ------------------------------------ | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
501| Non-WAV audio (mp3/m4a/mp4) | `sudo apt install ffmpeg` (Linux) · `brew install ffmpeg` (macOS) | No — quickstart reports if missing |
502| YouTube/URL downloads | `pipx install yt-dlp` | No |
503| Speaker diarization (faster-whisper) | `huggingface-cli login` + [accept model](https://hf.co/pyannote/speaker-diarization-3.1) | Partial (PyTorch auto-installs; token + model agreement manual) |
504| Both backends | `--quickstart --all --json` | Yes (second backend auto-installs on first use of a feature that needs it) |
505
506### Manual Backend Setup
507
508```bash
509./scripts/transcribe --check # Status check (human-readable)
510./scripts/transcribe --check --json # Status check (agent-parseable)
511./scripts/transcribe --setup parakeet # Best accuracy/speed (needs GPU)
512./scripts/transcribe --setup faster-whisper # Translation, 99+ languages, CPU-compatible
513./scripts/transcribe --setup all --diarize # Full install with diarization
514```
515
516### Hard Requirements & Install Strategy
517
518**Hard requirements:** Python 3.10+ only. Everything else is installed by `--quickstart` or auto-installs on first use.
519
520**Lean install strategy:**
521
522- **faster-whisper**: ~300 MB base (CTranslate2, no PyTorch). PyTorch (~2.8 GB) deferred until `--diarize`.
523- **Parakeet**: ~5 GB base (NeMo + PyTorch CUDA). Uses `nemo_toolkit[asr-only]` — skips training-only packages.
524- **System deps**: `--quickstart` does NOT auto-install system packages (ffmpeg, yt-dlp). It reports them as missing; install them separately if needed.
525
526**Auto-install behavior:** Backends lazy-load on first use. Optional deps (like pyannote for diarization) auto-install when you use the feature that needs them. In `--agent` mode, setup emits structured JSON status to stderr.
527
528### Platform Support
529
530| Platform | Acceleration | Speed |
531| ---------------------- | ------------ | ----------------------------------- |
532| **Linux + NVIDIA GPU** | CUDA | Parakeet ~3380× RT, Whisper ~20× RT |
533| **WSL2 + NVIDIA GPU** | CUDA | Parakeet ~3380× RT, Whisper ~20× RT |
534| macOS Apple Silicon | CPU | Whisper ~3-5× RT (Parakeet limited) |
535| macOS Intel | CPU | Whisper ~1-2× RT |
536| Linux (no GPU) | CPU | ~1× RT |
537
538### GPU Troubleshooting
539
540If setup didn't detect your GPU, manually install PyTorch with CUDA:
541
542```bash
543# For CUDA 12.x (in the backend's venv)
544uv pip install --python .venv/bin/python torch --index-url https://download.pytorch.org/whl/cu121
545```
546
547**WSL2 users**: Ensure you have the [NVIDIA CUDA drivers for WSL](https://docs.nvidia.com/cuda/wsl-user-guide/) installed on the Windows side.
548
549## Options
550
551### Super-Transcribe Routing Options
552
553```
554--quickstart One-command setup: install best backend for hardware (lean)
555--quickstart --all Install both backends (Parakeet + faster-whisper)
556--quickstart --json Same, structured JSON output for agent parsing
557--quickstart --dry-run --json Preview what would be installed with estimated sizes
558--check Check prerequisites + backend status (exit 0=ready, 2=not ready)
559--check --json Same check, compact JSON with estimated install sizes
560--backend <name> Force a backend: faster-whisper | parakeet | fw | pk
561--backends List available/installed backends and exit
562--probe Quick audio metadata (duration, format, channels) — no transcription
563--setup <backend> Pre-install a backend: faster-whisper | parakeet | all
564--help-routing Show detailed auto-routing logic
565--fast Use small 110M Parakeet model (quick, lower accuracy)
566--multitalker Multi-speaker pipeline with overlapped speech handling
567--resume <path> Resume batch processing from checkpoint file
568--version Show super-transcribe + backend versions
569```
570
571### Shared Options (Work with Both Backends)
572
573```
574AUDIO Audio file(s), directory, glob, or URL
575-f, --format FMT text | json | srt | vtt | ass | lrc | ttml | csv | tsv | html
576-o, --output PATH Output file or directory
577-m, --model NAME Model name (backend-specific)
578-l, --language CODE Language code
579--max-words-per-line Subtitle word wrapping
580--max-chars-per-line Subtitle character wrapping
581--batch-size N Inference batch size
582--skip-existing Skip already-transcribed files
583--resume PATH Resume batch from checkpoint file (skips completed files)
584--device DEV auto | cpu | cuda
585-q, --quiet Suppress progress messages
586--version Print version info
587--diarize Speaker diarization
588--min-speakers N Min speakers hint for diarization
589--max-speakers N Max speakers hint for diarization
590--speaker-names LIST Replace SPEAKER_1, SPEAKER_2 with names
591--export-speakers DIR Export each speaker's audio to WAV files
592--search TERM Search transcript for TERM
593--search-fuzzy Fuzzy/approximate search matching
594--detect-chapters Detect chapter breaks from silence gaps
595--chapter-gap SEC Min silence gap for chapter break (default: 8.0)
596--chapters-file PATH Write chapter markers to file
597--chapter-format FMT youtube | text | json (default: youtube)
598--clean-filler Remove hesitation fillers (um, uh, etc.)
599--filter-hallucinations Filter common hallucination patterns
600--merge-sentences Merge segments into sentence chunks
601--detect-paragraphs Insert paragraph breaks based on gaps
602--paragraph-gap SEC Min gap for paragraph break (default: 3.0)
603--normalize EBU R128 volume normalization
604--denoise High-pass + FFT noise reduction
605--channel CH left | right | mix (default: mix)
606--burn-in OUTPUT Burn subtitles into video file
607--rss URL Podcast RSS feed to transcribe
608--rss-latest N Latest N episodes from RSS (default: 5)
609--stats-file PATH Write performance stats JSON sidecar
610```
611
612### Faster-Whisper Only Options
613
614```
615Model & Language:
616 --revision REV Model revision (git branch/tag/commit) to pin a specific version
617 --initial-prompt TEXT Prompt to condition the model (terminology, formatting style)
618 --prefix TEXT Prefix to condition the first segment (e.g. known starting words)
619 --hotwords WORDS Space-separated hotwords to boost recognition
620 --translate Translate any language to English (instead of transcribing)
621 --multilingual Enable multilingual/code-switching mode
622 --hf-token TOKEN HuggingFace token for private/gated models and diarization
623 --model-dir PATH Custom model cache directory (default: ~/.cache/huggingface/)
624
625Output:
626 --word-timestamps Include word-level timestamps (wav2vec2 aligned automatically)
627 --stream Output segments as they are transcribed (disables diarize/alignment)
628 --output-template TPL Batch output filename template ({stem}, {lang}, {ext}, {model})
629
630Inference Tuning:
631 --beam-size N Beam search size; higher = more accurate but slower (default: 5)
632 --temperature T Sampling temperature or comma-separated fallback list
633 --no-speech-threshold PROB Mark segments as silence (default: 0.6)
634 --no-vad Disable voice activity detection
635 --vad-threshold T VAD speech probability threshold (default: 0.5)
636 --vad-neg-threshold T VAD negative threshold for ending speech
637 --min-speech-duration MS Minimum speech segment duration in ms
638 --max-speech-duration SEC Maximum speech segment duration
639 --min-silence-duration MS Minimum silence before splitting (default: 2000)
640 --speech-pad MS Padding around speech segments (default: 400)
641 --no-batch Disable batched inference
642 --hallucination-silence-threshold SEC Skip silent sections where model hallucinates
643 --no-condition-on-previous-text Don't condition on previous text (auto-enabled for distil models)
644 --condition-on-previous-text Override auto-disable for distil models
645 --compression-ratio-threshold RATIO Filter segments above this ratio (default: 2.4)
646 --log-prob-threshold PROB Filter segments below avg log probability (default: -1.0)
647 --max-new-tokens N Maximum tokens per segment
648 --clip-timestamps RANGE Transcribe specific time ranges: '30,60' or '0,30;60,90'
649 --progress Show transcription progress bar
650 --best-of N Candidates when sampling with non-zero temperature (default: 5)
651 --patience F Beam search patience factor (default: 1.0)
652 --repetition-penalty F Penalty for repeated tokens (default: 1.0)
653 --no-repeat-ngram-size N Prevent n-gram repetitions (default: 0 = off)
654
655Advanced Inference:
656 --no-timestamps Output text without timing info
657 --chunk-length N Audio chunk length for batched inference
658 --language-detection-threshold T Confidence threshold for language detection (default: 0.5)
659 --language-detection-segments N Segments to sample for detection (default: 1)
660 --length-penalty F Beam search length penalty (default: 1.0)
661 --prompt-reset-on-temperature T Reset prompt on temperature fallback (default: 0.5)
662 --no-suppress-blank Disable blank token suppression
663 --suppress-tokens IDS Token IDs to suppress
664 --max-initial-timestamp T Maximum timestamp for first segment (default: 1.0)
665 --prepend-punctuations CHARS Punctuation merged into preceding word
666 --append-punctuations CHARS Punctuation merged into following word
667
668Advanced:
669 --min-confidence PROB Filter segments below avg word confidence (0.0–1.0)
670 --detect-language-only Detect language and exit (no transcription)
671 --keep-temp Keep temp files from URL downloads
672 --parallel N Parallel workers for batch processing
673 --retries N Retry failed files with exponential backoff
674 --language-map MAP Per-file language overrides for batch mode
675
676Device:
677 --compute-type TYPE auto | int8 | int8_float16 | float16 | float32
678 --threads N CPU thread count for CTranslate2
679 --log-level LEVEL debug | info | warning | error
680```
681
682### Parakeet Only Options
683
684```
685--long-form Local attention for audio >24 min (up to ~3 hours)
686--streaming Print segments as they're transcribed (chunked inference)
687--timestamps Enable word/segment/char timestamps (auto-enabled for timed formats)
688--fast Use small 110M model for quick transcription (~2GB VRAM)
689--no-align Skip wav2vec2 alignment (faster, less precise timestamps)
690--multitalker Multi-speaker pipeline (Sortformer diar + per-speaker ASR)
691--multitalker-diar-model MODEL Override diarizer model for multitalker
692--multitalker-asr-model MODEL Override ASR model for multitalker
693```
694
695### Parakeet Model Aliases
696
697Short names for `-m` (Parakeet backend only):
698
699| Alias | Resolves to | Notes |
700| ----------------------- | ----------------------------------------------- | -------------------------- |
701| `v3`, `tdt-v3` | `nvidia/parakeet-tdt-0.6b-v3` | Default multilingual |
702| `v2`, `tdt-v2` | `nvidia/parakeet-tdt-0.6b-v2` | English only |
703| `1.1b`, `tdt-1.1b` | `nvidia/parakeet-tdt-1.1b` | 1.1B English |
704| `110m`, `fast`, `small` | `nvidia/parakeet-tdt_ctc-110m` | Tiny/fast model |
705| `ja`, `japanese` | `nvidia/parakeet-tdt_ctc-0.6b-ja` | Japanese |
706| `vi`, `vietnamese` | `nvidia/parakeet-ctc-0.6b-Vietnamese` | Vietnamese |
707| `da`, `danish` | `nvidia/parakeet-rnnt-110m-da-dk` | Danish |
708| `canary`, `canary-v2` | `nvidia/canary-1b-v2` | Translation (25 EU) |
709| `canary-flash` | `nvidia/canary-1b-flash` | Fast translation (4 langs) |
710| `multitalker` | `nvidia/multitalker-parakeet-streaming-0.6b-v1` | Multi-speaker |
711
712Full HuggingFace model paths always work too (e.g. `-m nvidia/parakeet-tdt-1.1b`).
713Both backends accept any valid model name via `-m`.
714
715---
716
717# 🗣️ faster-whisper Backend
718
719Local speech-to-text using faster-whisper — a CTranslate2 reimplementation of OpenAI's Whisper that runs **4-6x faster** with identical accuracy. With GPU acceleration, expect **~20x realtime** transcription (a 10-minute audio file in ~30 seconds).
720
721## Faster-Whisper Model Selection
722
723Choose the right model for your needs:
724
725```dot
726digraph model_selection {
727 rankdir=LR;
728 node [shape=box, style=rounded];
729
730 start [label="Start", shape=doublecircle];
731 need_accuracy [label="Need maximum\naccuracy?", shape=diamond];
732 multilingual [label="Multilingual\ncontent?", shape=diamond];
733 resource_constrained [label="Resource\nconstraints?", shape=diamond];
734
735 large_v3 [label="large-v3\nor\nlarge-v3-turbo", style="rounded,filled", fillcolor=lightblue];
736 large_turbo [label="large-v3-turbo", style="rounded,filled", fillcolor=lightblue];
737 distil_large [label="distil-large-v3.5\n(default)", style="rounded,filled", fillcolor=lightgreen];
738 distil_medium [label="distil-medium.en", style="rounded,filled", fillcolor=lightyellow];
739 distil_small [label="distil-small.en", style="rounded,filled", fillcolor=lightyellow];
740
741 start -> need_accuracy;
742 need_accuracy -> large_v3 [label="yes"];
743 need_accuracy -> multilingual [label="no"];
744 multilingual -> large_turbo [label="yes"];
745 multilingual -> resource_constrained [label="no (English)"];
746 resource_constrained -> distil_small [label="mobile/edge"];
747 resource_constrained -> distil_medium [label="some limits"];
748 resource_constrained -> distil_large [label="no"];
749}
750```
751
752### Standard Models (Full Whisper)
753
754| Model | Size | Speed | Accuracy | Use Case |
755| ---------------------- | ----- | --------- | --------- | ---------------------------------- |
756| `tiny` / `tiny.en` | 39M | Fastest | Basic | Quick drafts |
757| `base` / `base.en` | 74M | Very fast | Good | General use |
758| `small` / `small.en` | 244M | Fast | Better | Most tasks |
759| `medium` / `medium.en` | 769M | Moderate | High | Quality transcription |
760| `large-v1/v2/v3` | 1.5GB | Slower | Best | Maximum accuracy |
761| `large-v3-turbo` | 809M | Fast | Excellent | High accuracy (slower than distil) |
762
763### Distilled Models (~6x Faster, ~1% WER Difference)
764
765| Model | Size | Speed vs Standard | Accuracy | Use Case |
766| ----------------------- | ---- | ----------------- | --------- | ---------------------------------- |
767| **`distil-large-v3.5`** | 756M | ~6.3x faster | 7.08% WER | **Default, best balance** |
768| `distil-large-v3` | 756M | ~6.3x faster | 7.53% WER | Previous default |
769| `distil-large-v2` | 756M | ~5.8x faster | 10.1% WER | Fallback |
770| `distil-medium.en` | 394M | ~6.8x faster | 11.1% WER | English-only, resource-constrained |
771| `distil-small.en` | 166M | ~5.6x faster | 12.1% WER | Mobile/edge devices |
772
773`.en` models are English-only and slightly faster/better for English content.
774
775> **Note for distil models:** HuggingFace recommends disabling `condition_on_previous_text` for all distil models to prevent repetition loops. The script **auto-applies** `--no-condition-on-previous-text` whenever a `distil-*` model is detected. Pass `--condition-on-previous-text` to override if needed.
776
777### Custom & Fine-Tuned Models
778
779WhisperModel accepts local CTranslate2 model directories and HuggingFace repo names — no code changes needed.
780
781```bash
782# Local CTranslate2 model
783./scripts/transcribe audio.mp3 --model /path/to/my-model-ct2
784
785# HuggingFace repo name (auto-downloads)
786./scripts/transcribe audio.mp3 --model username/whisper-large-v3-ct2
787
788# Custom model cache directory
789./scripts/transcribe audio.mp3 --model-dir ~/my-models
790
791# Convert a HuggingFace model to CTranslate2
792pip install ctranslate2
793ct2-transformers-converter \
794 --model openai/whisper-large-v3 \
795 --output_dir whisper-large-v3-ct2 \
796 --copy_files tokenizer.json preprocessor_config.json \
797 --quantization float16
798```
799
800## Faster-Whisper Quick Reference
801
802Essential commands (faster-whisper-specific features only — shared features like diarization, search, chapters, formats are in the shared options above):
803
804| Task | Command | Notes |
805| ---------------------------- | ------------------------------------------------------------------------------- | ------------------------------------ |
806| **Translate → English** | `./scripts/transcribe audio.mp3 --translate` | Any language → English |
807| **Domain terms** | `./scripts/transcribe audio.mp3 --initial-prompt 'Kubernetes gRPC'` | Boost rare terminology |
808| **Hotwords boost** | `./scripts/transcribe audio.mp3 --hotwords 'JIRA Kubernetes'` | Bias decoder toward specific words |
809| **Clip time range** | `./scripts/transcribe audio.mp3 --clip-timestamps "30,60"` | Only 30s–60s |
810| **Stream output** | `./scripts/transcribe audio.mp3 --stream` | Live segments as transcribed |
811| **Fix hallucinations** | `./scripts/transcribe audio.mp3 --temperature 0.0 --no-speech-threshold 0.8` | Lock temperature + skip silence |
812| **Tune VAD sensitivity** | `./scripts/transcribe audio.mp3 --vad-threshold 0.6 --min-silence-duration 500` | Tighter speech detection |
813| **Hybrid quantization** | `./scripts/transcribe audio.mp3 --compute-type int8_float16` | Save ~1GB VRAM, minimal quality loss |
814| **Parallel batch** | `./scripts/transcribe *.mp3 --parallel 4 -o ./out/` | CPU multi-file processing |
815| **Language map (batch)** | `./scripts/transcribe *.mp3 --language-map "int*.mp3=en,lec*.mp3=fr"` | Per-file language in batch |
816| **Detect language only** | `./scripts/transcribe audio.mp3 --detect-language-only` | Fast language ID, no transcription |
817| **Custom model** | `./scripts/transcribe audio.mp3 -m ./my-model-ct2` | Local CTranslate2 model dir |
818| **Output filename template** | `./scripts/transcribe *.mp3 -o ./out/ --output-template "{stem}_{lang}.{ext}"` | Custom batch output naming |
819
820## Output Formats (Both Backends)
821
822Both backends support all 10 output formats via `--format`:
823
824| Format | Extension | Use Case |
825| ------ | --------- | ---------------------------------------------------- |
826| `text` | `.txt` | **Default.** Plain transcript |
827| `json` | `.json` | Full metadata: segments, timestamps, language, stats |
828| `srt` | `.srt` | Standard subtitle format (video players) |
829| `vtt` | `.vtt` | WebVTT (web video players) |
830| `ass` | `.ass` | Advanced SubStation Alpha (Aegisub, mpv, VLC) |
831| `lrc` | `.lrc` | Timed lyrics (music players) |
832| `ttml` | `.ttml` | Broadcast standard (Netflix, Amazon, BBC) |
833| `csv` | `.csv` | Spreadsheet-ready (with speaker column if diarized) |
834| `tsv` | `.tsv` | OpenAI Whisper–compatible TSV |
835| `html` | `.html` | Confidence-colored transcript |
836
837All formats support diarization labels. Multi-format output: `--format srt,text -o ./out/`
838
839## Faster-Whisper Speaker Diarization
840
841Identifies who spoke when using [pyannote.audio](https://github.com/pyannote/pyannote-audio).
842
843**Setup:**
844
845```bash
846./setup.sh --diarize
847```
848
849**Requirements:**
850
851- HuggingFace token at `~/.cache/huggingface/token` (`huggingface-cli login`)
852- Accepted model agreements:
853 - https://hf.co/pyannote/speaker-diarization-3.1
854 - https://hf.co/pyannote/segmentation-3.0
855
856**Usage:**
857
858```bash
859./scripts/transcribe meeting.wav --diarize
860./scripts/transcribe meeting.wav --diarize --format srt -o meeting.srt
861./scripts/transcribe meeting.wav --diarize --format json
862```
863
864Speakers are labeled `SPEAKER_1`, `SPEAKER_2`, etc. in order of first appearance. Runs on GPU automatically if CUDA is available.
865
866## Faster-Whisper Precise Word Timestamps
867
868Whenever word-level timestamps are computed (`--word-timestamps`, `--diarize`, or `--min-confidence`), a wav2vec2 forced alignment pass automatically refines them from Whisper's ~100-200ms accuracy to ~10ms. Uses the MMS (Massively Multilingual Speech) model — supports 1000+ languages, cached after first load.
869
870## Faster-Whisper Performance Notes
871
872- **First run**: Downloads model to `~/.cache/huggingface/` (one-time)
873- **Batched inference**: Enabled by default — ~3x faster than standard mode; VAD on by default
874- **GPU**: Automatically uses CUDA if available
875- **Quantization**: INT8 used on CPU for ~4x speedup
876- **Benchmark** (RTX 3070, 21-min file): **~24s** with batched inference vs ~69s without
877- **--precise overhead**: ~5-10s for wav2vec2 model load + alignment (cached for batch)
878- **Diarization overhead**: ~10-30s depending on audio length
879- **Memory**: `distil-large-v3`: ~2GB RAM / ~1GB VRAM; `large-v3-turbo`: ~4GB RAM / ~2GB VRAM; Diarization: +~1-2GB VRAM
880- **OOM**: Lower `--batch-size` (try 4) if you hit out-of-memory errors
881- **Silero VAD V6**: faster-whisper 1.2.1+ has improved speech detection
882
883## Faster-Whisper Common Mistakes
884
885| Mistake | Problem | Solution |
886| ----------------------------------- | -------------------------- | ------------------------------------------------------------- |
887| **Using CPU when GPU available** | 10-20x slower | Check `nvidia-smi`; verify CUDA |
888| **Not specifying language** | Wastes time auto-detecting | Use `--language en` when known |
889| **Using wrong model** | Unnecessary slowness | Default `distil-large-v3.5` is excellent |
890| **Ignoring distilled models** | Missing 6x speedup | Try `distil-large-v3.5` first |
891| **Out of memory** | Model too large | Use smaller model, `--compute-type int8`, or `--batch-size 4` |
892| **--diarize without pyannote** | Import error | Run `setup.sh --diarize` first |
893| **--diarize without HF token** | Download fails | Run `huggingface-cli login` |
894| **URL without yt-dlp** | Download fails | Install: `pipx install yt-dlp` |
895| **--min-confidence too high** | Drops good segments | Start at 0.5, adjust up |
896| **Batch without -o directory** | All output mixed in stdout | Use `-o ./transcripts/` |
897| **Hallucinations on silence/music** | Bad output | Try `--temperature 0.0 --no-speech-threshold 0.8` |
898
899## Faster-Whisper Troubleshooting
900
901- **"CUDA not available — using CPU"**: Install PyTorch with CUDA (see GPU Support above)
902- **Setup fails**: Make sure Python 3.10+ is installed
903- **Out of memory**: Use smaller model, `--compute-type int8`, or `--batch-size 4`
904- **Model download fails**: Check `~/.cache/huggingface/` permissions
905- **Diarization model fails**: Ensure HuggingFace token exists and model agreements accepted
906- **URL download fails**: Check yt-dlp is installed (`pipx install yt-dlp`)
907- **Check installed version**: `./scripts/transcribe --version`
908- **Upgrade**: `./scripts/backends/faster-whisper/setup.sh --update`
909- **VAD splits speech incorrectly**: Tune with `--vad-threshold 0.3` or `--min-silence-duration 300`
910
911## Faster-Whisper References
912
913- [faster-whisper GitHub](https://github.com/SYSTRAN/faster-whisper)
914- [Distil-Whisper Paper](https://arxiv.org/abs/2311.00430)
915- [HuggingFace Models](https://huggingface.co/collections/Systran/faster-whisper)
916- [pyannote.audio](https://github.com/pyannote/pyannote-audio) (diarization)
917- [yt-dlp](https://github.com/yt-dlp/yt-dlp) (URL/YouTube download)
918
919---
920
921# 🦜 Parakeet Backend
922
923Local speech-to-text using NVIDIA's Parakeet TDT models via the NeMo toolkit. The default `parakeet-tdt-0.6b-v3` is a 600-million-parameter multilingual ASR model that delivers **state-of-the-art accuracy** with **automatic punctuation and capitalization**, word-level timestamps, and an insane **~3380× realtime** inference speed on GPU.
924
925Only needs **~2GB VRAM** to run — plenty of room on an RTX 3070 (8GB).
926
927## Parakeet Model Selection
928
929### Available Models
930
931| Model | Alias | Params | Languages | VRAM | Speed | Use Case |
932| ----------------------------------------------- | -------------- | ------ | --------------- | ------ | --------- | ----------------------------------------- |
933| **`nvidia/parakeet-tdt-0.6b-v3`** | `v3` | 600M | 25 EU languages | ~2GB | ~3380× RT | **Default, best multilingual** |
934| `nvidia/parakeet-tdt-0.6b-v2` | `v2` | 600M | English only | ~2GB | ~3380× RT | English-only, slightly better English WER |
935| `nvidia/parakeet-tdt-1.1b` | `1.1b` | 1.1B | English only | ~3GB | Slower | Maximum English accuracy |
936| `nvidia/parakeet-tdt_ctc-1.1b` | `tdt-ctc-1.1b` | 1.1B | English only | ~3GB | Fast | Hybrid TDT+CTC; 11hrs in one pass |
937| `nvidia/parakeet-tdt_ctc-110m` | `110m`/`fast` | 110M | English only | ~1GB | Fastest | Low-VRAM / quick drafts |
938| `nvidia/parakeet-tdt_ctc-0.6b-ja` | `ja` | 600M | Japanese | ~2GB | ~3380× RT | Japanese (auto-selected with `-l ja`) |
939| `nvidia/parakeet-ctc-0.6b-Vietnamese` | `vi` | 600M | Vietnamese | ~2GB | ~3380× RT | Vietnamese (auto-selected with `-l vi`) |
940| `nvidia/parakeet-rnnt-110m-da-dk` | `da` | 110M | Danish | ~1GB | Fast | Danish (auto-selected with `-l da`) |
941| `nvidia/canary-1b-v2` | `canary` | 1B | 25 EU languages | ~3GB | ~200× RT | ASR + translation (bidirectional) |
942| `nvidia/canary-1b-flash` | `canary-flash` | 883M | EN/DE/FR/ES | ~2.5GB | >1000× RT | Fast Canary variant (4 languages only) |
943| `nvidia/multitalker-parakeet-streaming-0.6b-v1` | — | 600M | English | ~4GB\* | ~3380× RT | Multi-speaker with overlapped speech |
944
945\*Multitalker loads diarizer (~2GB) + ASR model (~2GB). Both are lazy-loaded and cached.
946
947### Language-Specific Model Auto-Selection
948
949When using the default model (`parakeet-tdt-0.6b-v3`) and specifying a language with `-l`, dedicated models are auto-selected:
950
951- `-l da` → `nvidia/parakeet-rnnt-110m-da-dk`
952- `-l ja` → `nvidia/parakeet-tdt_ctc-0.6b-ja`
953- `-l vi` → `nvidia/parakeet-ctc-0.6b-Vietnamese`
954
955All models are **lazy-loaded** — downloaded from HuggingFace on first use and cached locally.
956
957### Supported Languages (v3)
958
959Bulgarian (bg), Croatian (hr), Czech (cs), Danish (da), Dutch (nl), English (en), Estonian (et), Finnish (fi), French (fr), German (de), Greek (el), Hungarian (hu), Italian (it), Latvian (lv), Lithuanian (lt), Maltese (mt), Polish (pl), Portuguese (pt), Romanian (ro), Slovak (sk), Slovenian (sl), Spanish (es), Swedish (sv), Russian (ru), Ukrainian (uk)
960
961Language is **auto-detected** — no prompting or configuration needed.
962
963### Accuracy Benchmarks (v3)
964
965| Benchmark | WER |
966| ------------------------------ | --------- |
967| **Open ASR Leaderboard (avg)** | **6.34%** |
968| LibriSpeech test-clean | 1.93% |
969| LibriSpeech test-other | 3.59% |
970| AMI | 11.31% |
971| GigaSpeech | 9.59% |
972| SPGI Speech | 3.97% |
973| TED-LIUM v3 | 2.75% |
974| VoxPopuli | 6.14% |
975
976## Parakeet Quick Reference
977
978Essential commands (Parakeet-specific features only — shared features are in the shared options above):
979
980| Task | Command | Notes |
981| ------------------------ | ------------------------------------------------------------------------------------------------- | ---------------------------------- |
982| **Long audio (>24 min)** | `./scripts/transcribe lecture.wav --long-form` | Local attention, up to ~3 hours |
983| **Streaming output** | `./scripts/transcribe audio.wav --streaming` | Print segments as transcribed |
984| **Fast / 110M model** | `./scripts/transcribe --fast audio.wav` | Quick, lower accuracy (~1GB VRAM) |
985| **Skip alignment** | `./scripts/transcribe audio.wav --no-align` | Faster, less precise timestamps |
986| **Multitalker mode** | `./scripts/transcribe --multitalker meeting.wav` | Overlapped speech, per-speaker ASR |
987| **Japanese** | `./scripts/transcribe audio.wav -l ja` | Auto-selects Japanese model |
988| **Vietnamese** | `./scripts/transcribe audio.wav -l vi` | Auto-selects Vietnamese model |
989| **Danish** | `./scripts/transcribe audio.wav -l da` | Auto-selects Danish model |
990| **Canary translation** | `./scripts/transcribe audio.wav --backend parakeet --translate --source-lang fr --target-lang de` | Bidirectional EU translation |
991| **Fast Canary** | `./scripts/transcribe audio.wav -m canary-flash --translate` | >1000× RT, EN/DE/FR/ES only |
992| **Upgrade NeMo** | `./scripts/backends/parakeet/setup.sh --update` | Upgrade + verify torch >= 2.6.0 |
993
994## Parakeet Output
995
996Same 10 formats as listed in "Output Formats" above. Parakeet text output is automatically punctuated and capitalized. JSON output includes word/segment/char timestamps and performance stats.
997
998## Parakeet Long-Form Audio
999
1000Parakeet v3 supports two attention modes:
1001
1002| Mode | Max Duration | Flag | Notes |
1003| ---------------------------- | ------------ | ------------- | ------------------------------------------ |
1004| **Full attention** (default) | ~24 min | _(none)_ | Best accuracy, requires more VRAM |
1005| **Local attention** | ~3 hours | `--long-form` | Slightly reduced accuracy, much lower VRAM |
1006
1007For audio over 24 minutes:
1008
1009```bash
1010./scripts/transcribe long-lecture.wav --long-form
1011```
1012
1013This changes the attention model to `rel_pos_local_attn` with a context window of [256, 256].
1014
1015## Parakeet Audio Format Support
1016
1017| Format | Support | Notes |
1018| ------- | ----------- | ------------------------ |
1019| `.wav` | ✅ Native | Preferred; 16kHz mono |
1020| `.flac` | ✅ Native | Lossless; works directly |
1021| `.mp3` | 🔄 Converts | Requires ffmpeg |
1022| `.m4a` | 🔄 Converts | Requires ffmpeg |
1023| `.mp4` | 🔄 Converts | Requires ffmpeg |
1024| `.ogg` | 🔄 Converts | Requires ffmpeg |
1025| `.webm` | 🔄 Converts | Requires ffmpeg |
1026| `.aac` | 🔄 Converts | Requires ffmpeg |
1027| `.wma` | 🔄 Converts | Requires ffmpeg |
1028| `.opus` | 🔄 Converts | Requires ffmpeg |
1029| `.mkv` | 🔄 Converts | Requires ffmpeg |
1030
1031Non-native formats are automatically converted to 16kHz mono WAV using ffmpeg before transcription.
1032
1033## Parakeet Multitalker Mode
1034
1035For audio with overlapping speakers (meetings, debates, panel discussions), the `--multitalker` mode uses a dedicated pipeline:
1036
10371. **Sortformer diarizer** (`nvidia/diar_streaming_sortformer_4spk-v2.1`) identifies speakers and their active regions
10382. Per-speaker audio is extracted using ffmpeg
10393. **Multitalker ASR model** (`nvidia/multitalker-parakeet-streaming-0.6b-v1`) transcribes each speaker separately
10404. Results are merged and sorted by timestamp
1041
1042```bash
1043# Basic multitalker
1044./scripts/transcribe --multitalker meeting.wav
1045
1046# With speaker names
1047./scripts/transcribe --multitalker meeting.wav --speaker-names "Alice,Bob,Charlie"
1048
1049# With custom models
1050./scripts/transcribe --multitalker \
1051 --multitalker-diar-model nvidia/diar_streaming_sortformer_4spk-v2.1 \
1052 --multitalker-asr-model nvidia/multitalker-parakeet-streaming-0.6b-v1 \
1053 meeting.wav
1054```
1055
1056**Requirements:** CUDA GPU with ~6GB VRAM (both models loaded simultaneously). English only. Both models are lazy-loaded on first use.
1057
1058**vs standard `--diarize`:** Standard diarization transcribes the full audio first, then assigns speakers post-hoc — it can't handle overlapping speech. Multitalker transcribes each speaker independently, so overlapping regions are transcribed correctly per speaker.
1059
1060## Parakeet Timestamp Alignment
1061
1062Parakeet includes automatic wav2vec2 forced alignment that refines word-level timestamps from NeMo's native output (~100ms) to ~10ms accuracy using the MMS model. This runs automatically after transcription.
1063
1064- **To skip alignment** (faster processing): use `--no-align`
1065- Alignment is automatically skipped in `--streaming` mode
1066- The MMS model is cached after first load for batch efficiency
1067
1068## Parakeet Troubleshooting
1069
1070| Problem | Solution |
1071| ------------------------------------ | ------------------------------------------------------------------------------------------------- |
1072| **CUDA not available** | Install PyTorch with CUDA: `pip install torch --index-url https://download.pytorch.org/whl/cu121` |
1073| **NeMo 2.6+ crashes** | Requires torch >= 2.6.0. Run `./scripts/backends/parakeet/setup.sh --update` to upgrade both torch and NeMo |
1074| **NeMo import error** | Run `./setup.sh` or `./scripts/backends/parakeet/setup.sh` |
1075| **Out of memory** | Use `--fast` (110M model, ~1GB VRAM) or `--device cpu` |
1076| **Model download fails** | Check HuggingFace connectivity and `~/.cache/huggingface/` permissions |
1077| **ffmpeg not found** | Install ffmpeg: `apt install ffmpeg` (needed for non-WAV input) |
1078| **Multitalker fails** | Requires NeMo 2.4+ and ~6GB VRAM. Check `nvidia-smi` for available memory |
1079| **Diarization fails (NeMo)** | Falls back to pyannote automatically. Install: `pip install pyannote.audio` |
1080| **pyannote auth error** | Run `huggingface-cli login` and accept model agreements |
1081| **Streaming mode not real-time** | `--streaming` uses chunked attention inference, not live audio streaming |
1082| **Japanese/Vietnamese not detected** | Explicitly pass `-l ja` or `-l vi` for auto-selection of dedicated models |
1083| **Batch crashed mid-way** | Use `--resume progress.json` to continue from where it stopped |
1084| **Wrong model loaded** | Check `--model` value. Use exact HuggingFace paths or aliases (see table above) |
1085
1086---
1087
1088## Architecture
1089
1090Both backends share a common library to avoid code duplication:
1091
1092```
1093scripts/
1094├── transcribe # Unified entry point (router)
1095└── backends/
1096 ├── lib/ # Shared code (imported by both backends)
1097 │ ├── formatters.py # All 10 output formats
1098 │ ├── postprocess.py # Search, chapters, filler, paragraphs, merge, hallucination filter
1099 │ ├── audio.py # Preprocessing, conversion, download, burn-in, resolve_inputs
1100 │ ├── alignment.py # wav2vec2 forced alignment (MMS model, shared by both backends)
1101 │ ├── speakers.py # Speaker name mapping, audio export
1102 │ └── rss.py # RSS feed parsing
1103 ├── faster-whisper/ # CTranslate2 backend (imports from lib/)
1104 └── parakeet/ # NeMo backend (imports from lib/)
1105```