Skip to content

Instantly share code, notes, and snippets.

View JoshBello's full-sized avatar
🎯
Focusing

Josh Bello JoshBello

🎯
Focusing
View GitHub Profile
@mixxorz
mixxorz / waveform.py
Last active January 19, 2023 15:46
Generate waveform images from audio files
# Requires pydub (with ffmpeg) and Pillow
#
# Usage: python waveform.py <audio_file>
import sys
from pydub import AudioSegment
from PIL import Image, ImageDraw