Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

audiogram

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used to turn podcast or voice audio into a social-media video (MP4) with a waveform per voice and optional word-by-word captions…

glebisот glebis★ 417 звёзд на GitHub

Об этом скилле

audiogram

Podcast audio → MP4 with one waveform lane per voice (scrolling bars: spoken part in full colour, what's coming as a faint preview, the speaking voice glows), speaker names, reaction chips (“mm-hm”), word-by-word captions, title, and either a progress bar or an overview strip (--overview on: the whole clip as a mini waveform per voice with a playhead — viewers see where the next speaker comes in and can scrub straight to it). Everything is kept inside the platform-safe area by default. H.264 + AAC 48 kHz, +faststart — uploads as-is to Instagram, TikTok, YouTube, LinkedIn, Telegram.

CLI: python3 ~/.claude/skills/audiogram/scripts/audiogram.py <command> (below: ag). Needs ffmpeg/ffprobe, Python numpy, Pillow; requests + GROQ_API_KEY only for --timing whisper (key from env, then SOPS ~/.claude/skills/secrets.enc.yaml; never print it).

1. Source

  • podcast-briefing episode folder (has manifest.json + stems/) → one lane per voice, names from the voices (daniel → Daniel; ElevenLabs IDs → "Voice A" — pass --names A=Ivan,B=Alisa), title from script.md, captions timed from the script (free, offline, exact spelling). Folder made before stems existed → audiogram runs podcast.py remix DIR itself (no TTS calls, same pack and settings, writes stems/; it re-encodes episode.mp3 with the same mix).
  • any audio file → one lane; captions need --timing whisper (Groq, costs a little) or --captions off.

2. Look first, then encode

  1. Pick format with the user if unclear: 9x16 (Reels/TikTok/Shorts, default), 1x1 (feed), 16x9 (YouTube, LinkedIn). Theme: night (default, dark), paper (light, no glow), ocean (deep blue).
  2. ag still SRC -o /tmp/f.png --at 14 --guides [--format … --theme … --overview on] — render one frame and Read the PNG (pick a moment where both voices or a reaction are on screen). --guides tints what platform UI covers; nothing should sit in the red. Cheap; iterate here, not on full renders.
  3. ag render SRC -o OUT.mp4 [--format 9x16] [--theme night] [--title T] [--eyebrow E] [--footer "@handle"]. Renders in parallel chunks (~20 s for a 70 s vertical video on an M-series Mac).
  4. Social clip of a longer episode: --start 23 --end 53 (progress bar and timer count the clip; audio fades at the cut points). Keep Reels/Shorts clips under 60–90 s; start on a line that makes sense on its own.

Safe area (--safe on, default)

9x16 keeps 220 px top / 480 px bottom / 140 px right (+ the same on the left, so centred text stays centred) of 1080×1920 clear — the union of Instagram Reels and TikTok overlays (account row, caption + audio row, nav bar, like/comment/share rail); YouTube Shorts fits inside. 1x1 and 16x9 keep a ~6 % margin (feed crops, LinkedIn/X players). The bottom ~quarter of a vertical video is left as plain background on purpose — the platform's caption and buttons go there. --safe off only for places with no overlays (a website embed, a presentation).

3. Captions

  • --timing script (default for episodes): words spread over each clip by length, pauses after punctuation — usually within ~0.3 s. --timing whisper: Groq Whisper word timestamps; for episodes the script's words are aligned onto them (spelling stays the script's). Cached as .<name>.whisper.json next to the output.
  • --captions off gives the lanes the whole middle of the frame.
  • ag words SRC prints the caption timing as JSON (debug a word that lands late).
  • Pages are ≤6 words / ≤30 chars, break on sentence end, pauses and speaker change; the current word is in the speaker's colour, upcoming words dim. Overlapping turns: the most recently started line wins.

4. Deliver

Save to ~/Downloads/<name>.mp4 unless the user names a place. Give the full path and offer open OUT.mp4. Don't upload anywhere without asking.

Design notes (scripts/render.py)

Bars: 55 ms of audio per bar, mirrored rounded capsules, drawn at 2× and box-reduced (antialiased without cairo). Levels: RMS in dB against one shared reference (98th percentile of all voices), −30 dB floor, curve 1.8 — so a quieter voice also looks quieter and speech rhythm stays visible. Lane ends fade out. Text colours are pre-blended against the background gradient (no full-frame alpha compositing per frame). Fonts: Inter variable if installed, else Avenir Next / Helvetica Neue / DejaVu; --font PATH overrides (needs Cyrillic etc. for non-Latin captions).

Полный SKILL.md на GitHub

Установить audiogram в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read

Вложенные файлы

requirements.txtscripts/audio.pyscripts/audiogram.pyscripts/captions.pyscripts/render.py

FAQ

Что делает скилл audiogram?

This skill should be used to turn podcast or voice audio into a social-media video (MP4) with a waveform per voice and optional word-by-word captions — vertical 9:16 for Reels / TikTok / Shorts, square 1:1, or 16:9. Works best on podcast-briefing episode folders (one lane per speaker from the per-voice stems, captions timed from the script); any audio file also works as a single lane, with captions from Groq Whisper. Triggers on "make a video from this podcast", "audiogram", "waveform video", "turn this episode into a Reel / TikTok / Short", "add captions to this audio for Instagram", or "cut a clip of the episode for social".

Как установить скилл audiogram?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл audiogram запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить audiogram с