Communitygithub.com

jsath/claude-skills

Transcrivez de l'audio ou de la vidéo sur votre machine avec Whisper (mlx-whisper, faster-whisper ou whisper.cpp) et obtenez des horodatages au niveau du mot sous forme de words.json, un .txt brut et un .srt. Pas de clé API, rien n'est téléchargé. Il s'agit de l'étape de transcription dont dépendent les compétences d'édition (edit-style, longform-edit, reel-captions). Utilisez-le lorsque vous devez transcrire une prise, obtenir des horodatages de mots, créer un SRT, retranscrire un rendu final pour une vérification de synchronisation des sous-titres, ou 'exécuter whisper localement'.

Qu'est-ce que claude-skills ?

Cette compétence permet de transcrire localement des fichiers audio ou vidéo à l'aide de Whisper, sans nécessiter de clé API ni de téléchargement vers un service externe. Elle prend en charge trois backends (mlx-whisper sur Apple Silicon, faster-whisper pour Linux/Windows/CUDA, et whisper.cpp pour ceux qui ne veulent pas de stack Python ML) et génère systématiquement un fichier words.json avec des horodatages mot par mot, ainsi qu'un fichier .txt brut et un fichier .srt. Le point fort est la précision des horodatages, essentielle pour le montage ultérieur (découpage, sous-titres, vérifications de synchronisation). Elle fournit également des règles et des astuces pour éviter les erreurs courantes (par exemple, Whisper déformant les noms propres) et gère les échecs avec des solutions pratiques. Compatible avec Claude Code sur une machine disposant de ffmpeg et de l'un des backends installés.

Compatible avec✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/jsath/claude-skills/tree/HEAD/skills/use-local-whisper

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Utiliser Whisper localement

Un script, trois backends, un format de sortie. Tout ce qui suit (listes de coupes, horaires des sous-titres, portes de synchronisation) lit <stem>.words.json :

[
{"w": "Votre", "s": 0.02, "e": 0.27},
{"w": "IA", "s": 0.27, "e": 0.4}
]

w = mot tel qu'entendu, s/e = début/fin en secondes.

Prérequis (Claude Code, sur un ordinateur)

  • ffmpeg (n'importe quelle version) : brew install ffmpeg / apt install ffmpeg
  • Python 3.9+
  • Un backend :
backendinstallationmodèle par défautà utiliser quand
mlxpip install mlx-whispermlx-community/whisper-large-v3-turboApple Silicon. Meilleure synchronisation des mots des trois
faster-whisperpip install faster-whisperlarge-v3-turboLinux/Windows, ou CUDA
whisper-cppbrew install whisper-cpp (le binaire est whisper-cli)aucun, passez --modelpas de stack ML Python souhaité

Téléchargement du modèle whisper.cpp (466 Mo, anglais) :

mkdir -p ~/whisper-models
curl -L -o ~/whisper-models/ggml-small.en.bin \
  https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.en.bin

Vérification de l'installation (affiche quel backend auto utiliserait) :

ffmpeg -version | head -1
python3 -c "import mlx_whisper" 2>/dev/null && echo mlx || \
python3 -c "import faster_whisper" 2>/dev/null && echo faster-whisper || \
command -v whisper-cli || echo "AUCUN BACKEND : installez-en un depuis le tableau"

Non disponible sur Claude.ai (pas de shell). Dans ce cas, demandez à l'utilisateur de télécharger un SRT à la place.

Exécution

python3 scripts/transcribe.py take.mov                       # backend auto, anglais
python3 scripts/transcribe.py take.mov --backend whisper-cpp --model ~/whisper-models/ggml-small.en.bin
python3 scripts/transcribe.py final.mp4 --out qa/ --words-per-cue 2
python3 scripts/transcribe.py interview.m4a --lang auto      # détecter la langue

Il extrait d'abord du 16 kHz mono avec ffmpeg, donc n'importe quel conteneur fonctionne (mov, mp4, m4a, wav). La sortie est placée à côté de l'entrée sauf si --out est spécifié : <stem>.words.json, <stem>.txt, <stem>.srt.

Quel modèle pour quel travail

travailutilisationpourquoi
Synchronisation des sous-titres, portes de synchronisationlarge-v3-turbo (mlx ou faster-whisper)Les petits modèles dérivent de 0,1 à 0,4 s par mot sur le même audio
Texte de transcription, listes de coupes, détection de reprisessmall.en ou turboLa qualité du texte est proche ; small.en est rapide sur CPU
Non-anglaislarge-v3-turbo avec --lang <code>Les modèles .en sont anglais uniquement

Règles qui évitent une reprise

  1. Texte du script, synchronisation de Whisper. Whisper déforme les noms ("Cloud" pour Claude). Pour les sous-titres, alignez les mots du script sur words.json et conservez l'orthographe du script (edit-style tools/make_cues.py fait cela). Gardez une carte de correction ({"cloud code": "Claude Code"}) pour tout ce qui n'a pas de script.
  2. Écrivez les nombres en chiffres dans les scripts. Whisper émet 2,000, pas "deux mille", donc un script en toutes lettres ne parvient pas à s'aligner.
  3. Retranscrivez le rendu FINAL pour le SRT publié et toute vérification de synchronisation. Les horaires de la prise brute sont erronés après chaque coupe.
  4. Whisper place le premier mot près de 0,00 même lorsque la parole commence plus tard. Trouvez le début réel à partir de l'énergie audio avant de couper le début, puis retranscrivez les 2 premières secondes pour prouver que le premier mot a survécu.
  5. Fichiers longs (plus de ~30 min) : fonctionnent bien avec les trois backends ; comptez environ temps réel / 10 sur Apple Silicon avec turbo. Exécutez sous nice -n 15 si quelqu'un enregistre sur la même machine.

Gestion des échecs

symptômesolution
aucun Whisper local trouvéinstallez un backend depuis le tableau
whisper-cpp a besoin de --modeltéléchargez un modèle ggml (ci-dessus) ou définissez WHISPER_MODEL
whisper-cli introuvable mais il est installédéfinissez WHISPER_BIN=/chemin/vers/whisper-cli (les chemins launchd/cron manquent souvent /opt/homebrew/bin)
sortie vide ou avec 0 motvérifiez que le fichier contient de l'audio : ffprobe -v error -select_streams a -show_entries stream=codec_name -of csv=p=0 FICHIER
mauvaise langue / charabiapassez --lang <code> explicitement
mots collés ("2,000fichiers")bizarrerie de whisper.cpp sur certaines versions ; utilisez mlx ou faster-whisper pour le travail de synchronisation

Sortie à rapporter

whisper-cpp : 17 mots, 5,68s -> o/take.words.json / .txt / .srt

Transmettez ensuite le chemin words.json à la compétence suivante (edit-style, longform-edit, reel-captions).

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

jsath/claude-skills

Writes captions for a finished video from its transcript: pulls the line worth repeating, writes first-line options, writes per-platform versions (Instagram, TikTok, YouTube title and description, others on request), keeps the creator's voice using their best past captions, and checks the call to action matches what the video actually says. Use when a creator asks for captions, a caption hook, a YouTube title and description, or a CTA check. Drafts only; never posts or schedules.

jsath/claude-skills

Write CAPTIONS-PLATFORMS.md for one finished short video: a per-platform post caption for Instagram, TikTok, YouTube Shorts (title + description), Facebook, Threads, Bluesky and X, each within that platform's limits, with your comment-keyword CTA on the platforms where it belongs and never on X. Keyword, CTA, platforms, hashtags and limits come from a config file; a checker script fails the file on any miss. Use after an edit is finished, when asked to 'write the captions', 'caption this reel for every platform', or before scheduling.

jsath/claude-skills

Turns one published long-form video or podcast transcript into up to thirty pieces: 10 clips with new hooks and exact timestamps, 8 X posts, 4 LinkedIn posts, 3 carousels, 2 threads, a newsletter, a community post and a blog post, laid out on a two-week plan, all built only from what was said. In Claude Code it also cuts, reframes and captions the clips with ffmpeg. Use when someone wants to repurpose a long video, find clips, or write social posts from a transcript. Never posts or schedules.

jsath/claude-skills

Turn a raw talking-head take into a dynamically edited 1080x1920 reel: full-face, full-graphic and split layouts that switch every 2 to 5 seconds, real UI and official-logo panels, captions on every word timed by Whisper, voice plus synthesised SFX (no music bed) mastered to -14 LUFS, and hard QA gates (caption sync on the final render, A/V length, loudness, colour, framing, contact sheet, claims). Also covers writing the script so it does not read as AI. Use when asked to 'edit this reel', 'make it look edited', 'add captions / dynamic layout / graphics', or 'write a reel script'.

jsath/claude-skills

Edits a raw long-form YouTube recording (screen recording export, camera file, or either plus a separate mic) into a publish-ready video automatically, like Descript on autopilot: transcribes with word timestamps, removes retakes and keeps the last take, tightens dead space while keeping silent on-screen action (speeding up long waits), masters the voice to -14 LUFS / -1.5 dBTP with no music bed, re-transcribes the FINAL render for an every-word SRT (optional burned-in captions), drafts chapters, titles and a description, and fails loudly on QA gates (words, A/V sync, caption sync per chapter, caption coverage, loudness) plus contact sheets you look at. Use when someone says edit this long-form, clean up my recording, cut the retakes and dead space, process the long-form inbox, or descript this. Needs Claude Code with ffmpeg, whisper.cpp and Python 3.

jsath/claude-skills

Turns one podcast episode transcript into a week of written content: an Episode Prep agent that checks the transcript and speaker names, a Clip Spotter that picks the best short-clip moments with exact timestamps and hooks for an editor to cut, a Show Notes Writer that writes show notes and chapter markers, a Repurpose Writer that turns the big ideas into a newsletter, a LinkedIn post and Instagram captions, and an Episode Planner that spreads it all over the week. Works from a transcript the user supplies or exports from their transcription tool. It does not edit audio or video and does not cut clips. Use when a podcaster asks for show notes, chapters, clip timestamps, or posts from an episode, or says \"repurpose this episode\". Drafts only; never posts.

jsath/claude-skills

Turns one raw talking-head take into a finished 1080x1920 vertical reel in Claude Code with free local tools (ffmpeg, whisper.cpp, headless Playwright): transcribes, keeps the last take of repeated lines, cuts pauses, captions every word, adds real screenshots and official logos, and runs measured QA gates. Use when someone wants a raw phone take edited into a Reel, TikTok or Short, retakes and silences cut, word-by-word captions, or a finished video checked. In Claude.ai it only produces a cut list, shot plan and .srt from a pasted transcript.

jsath/claude-skills

Turns notes, voice-note transcripts and half ideas into Reel, TikTok and YouTube scripts in the creator's own voice: ranks an idea bank, writes ten hooks per idea, writes the script at the right length, rewrites anything that sounds like AI using transcripts of the creator's past videos, and fact-checks every claim with a source and date. Use when someone wants a video script, hooks, a ranked list of what to film, a voice pass, a claims check, or a record sheet to read from while filming.

jsath/claude-skills

Reviews and rewrites a video script (YouTube long-form, a short, or a talking-head reel) so it sounds like one person talking to one friend and holds attention: kills forced analogies and presenter phrases, fixes framing, checks hooks, open loops and re-engagement beats, and suggests titles. Use when someone says fix this script, polish my script, make it sound like me, tighten this before I film, or asks for a hook or title for a video. Returns the rewritten script plus a short change log.

jsath/claude-skills

Make a 1280x720 YouTube thumbnail (or a banner/cover) that reads at phone size: a text-free background plate (generated or from a real frame), a real cutout of the person, 1 to 3 words in tight colour blocks, an official logo, composed by a script that checks overlaps and frame edges and renders the 320px and 168px views you must look at. Use when asked for a thumbnail, cover, banner, 'make this clickable', or to fix a thumbnail that looks cluttered or small.

jsath/claude-skills

Runs five agents that keep a YouTube channel's titles and descriptions matched to what people search for now: a Channel Reader that pulls the user's own video list and stats with their YouTube Data API key, YouTube Analytics OAuth or a pasted YouTube Studio export, a Niche Watcher that finds what is working right now for similar-size channels from public search results the API returns or the user provides, a Title Writer that drafts titles, descriptions and chapters for new videos, a Back Catalogue agent that picks old videos worth a refresh and drafts new versions, and a Change Tracker that records every change the user makes and compares before and after on matched windows. Use when a creator asks for YouTube SEO, better titles or descriptions, what is working in their niche, a back catalogue refresh, or says \"seo run\". Never invents search volumes or stats and never changes a video; drafts only.

Skills associés