audiowaveform
БесплатноБез исполняемых скриптовНе проверенGenerate waveform visualizations from audio files. Use when a user asks to create waveform images, build audio player visualizations, generate waveform data…
Об этом скилле
Audiowaveform
Overview
Generate waveform visualizations from audio files using BBC's audiowaveform tool. Renders PNG waveform images (PNG only, no SVG), converts audio to WAV, and outputs peak data as JSON or binary (.dat) for web-based audio players (wavesurfer.js, peaks.js). Ideal for podcast players, music platforms, social media audio previews, and any UI that shows audio waveforms.
Instructions
Step 1: Installation
# macOS and Linuxbrew
brew install audiowaveform
# Ubuntu (Launchpad PPA maintained by the author)
sudo add-apt-repository ppa:chris-needham/ppa
sudo apt-get update
sudo apt-get install audiowaveform
Development moved from GitHub (bbc/audiowaveform, now a stale mirror) to Codeberg; the current version is 1.11.1. Debian, RHEL-family and Windows packages are attached to the Codeberg releases (the 1.10.2 release has the .deb and .rpm files, 1.11.0 only a Windows zip, 1.10.3 and 1.11.1 none); pick the file that matches your OS version and install it with dpkg -i plus apt-get -f install, or yum localinstall. A community Docker image, realies/audiowaveform, also exists. To build from source on Ubuntu:
sudo apt-get install git make cmake gcc g++ libmad0-dev libid3tag0-dev \
libsndfile1-dev libgd-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev
git clone https://codeberg.org/chrisn/audiowaveform.git
cd audiowaveform && mkdir build && cd build
cmake -D ENABLE_TESTS=0 .. && make && sudo make install
Verify with audiowaveform --version. Input can be MP3, WAV, FLAC, Ogg Vorbis, or Opus (Opus needs libsndfile 1.0.29+).
Step 2: Generate Waveform Images
Basic PNG waveform:
audiowaveform -i episode.wav -o waveform.png
Customized waveform:
audiowaveform -i episode.mp3 -o waveform.png \
--width 1800 \
--height 200 \
--colors audacity \
--background-color ffffff \
--waveform-color 3b82f6 \
--axis-label-color 666666 \
--border-color ffffff \
--zoom auto
--zoom auto fits the whole file into the image width. --zoom, --pixels-per-second and --end are mutually exclusive.
Color schemes:
audacity(default) — blue waveform on greyaudition— green on dark, like Adobe Audition- Custom: hex
rrggbborrrggbbaavia--waveform-color,--background-color,--border-color,--axis-label-color
Bars instead of a continuous waveform:
audiowaveform -i episode.mp3 -o bars.png -w 1000 -h 200 -z auto \
--waveform-style bars --bar-width 10 --bar-gap 2 --bar-style rounded
High-res for social media (1200x630 — OG image size):
audiowaveform -i episode.wav -o social-preview.png \
--width 1200 --height 630 \
--background-color 1a1a2e \
--waveform-color 00d4ff \
--no-axis-labels
Specific time range:
audiowaveform -i episode.wav -o clip.png \
--start 60 --end 180 \
--width 800 --height 150
Split channels (stereo): pass one colour per channel.
audiowaveform -i stereo.wav -o waveform.png --split-channels --waveform-color 3b82f6,ef4444
Step 3: Generate Waveform Data (JSON)
For web players that render waveforms client-side:
# JSON output (peaks data)
audiowaveform -i episode.wav -o peaks.json \
--pixels-per-second 20 \
--bits 8
# --bits defaults to 16; 8 gives smaller files
# Binary format (smaller files)
audiowaveform -i episode.wav -o peaks.dat \
--pixels-per-second 20 \
--bits 8
JSON structure:
{
"version": 2,
"channels": 1,
"sample_rate": 44100,
"samples_per_pixel": 2205,
"bits": 8,
"length": 4,
"data": [-12, 45, -3, 67, -20, 89, -7, 31]
}
Pixels-per-second guidelines:
20— good for full episode overview (podcast, 1-2h)50— detailed view for songs (3-5 min)100— very detailed, for short clips200+— waveform editing precision
Step 4: Web Player Integration
With wavesurfer.js (v8): pass normalized peaks and the duration so the waveform draws before the audio is decoded. audiowaveform writes integers (-128..127 for 8 bit), wavesurfer expects floats between -1 and 1.
<div id="waveform"></div>
<button onclick="wavesurfer.playPause()">Play/Pause</button>
<script src="https://unpkg.com/[email protected]"></script>
<script>
let wavesurfer;
fetch("/waveforms/episode-peaks.json")
.then(r => r.json())
.then(data => {
const peaks = data.data.map(v => v / 2 ** (data.bits - 1));
const duration = data.length * data.samples_per_pixel / data.sample_rate;
wavesurfer = WaveSurfer.create({
container: "#waveform",
waveColor: "#3b82f6",
progressColor: "#1d4ed8",
cursorColor: "#ef4444",
barWidth: 2,
barRadius: 2,
barGap: 1,
height: 80,
url: "/audio/episode.mp3",
peaks: [peaks],
duration,
});
});
</script>
**With peaks.js (BB
Установить audiowaveform в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл audiowaveform?
Generate waveform visualizations from audio files. Use when a user asks to create waveform images, build audio player visualizations, generate waveform data for web players, create podcast episode previews, build audio thumbnails, render waveform PNGs for social media, extract peak data as JSON, or integrate waveform generation into audio processing pipelines. Covers audiowaveform CLI, JSON/binary data output, and web player integration.
Как установить скилл audiowaveform?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл audiowaveform запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic