draw audio waveform

# get some audio
flite -voice slt -t "stretchbang" -o stretchbang.wav
# and convert to pretty picture
ffmpeg -i "stretchbang.wav" -lavfi showwavespic=s=4000x2000:colors=000000 waveform.png 
# then downscale to around 25%

# or with log scale
ffmpeg -i "stretchbang.wav" -lavfi showwavespic=scale=log:s=4000x2000:colors=000000 waveformLog.png

waveform.png

https://trac.ffmpeg.org/wiki/Waveform

If it’s not a mono file
https://stackoverflow.com/questions/40092006/ffmpeg-waveform-with-specific-color

ffmpeg -i "stretchbang.wav" -filter_complex \
"aformat=channel_layouts=mono,showwavespic=s=4000x2000:colors=#ad9557" waveform.png
about / github / jekyll

Support this neat blog by sending some doge to this dogecoin deposit address (minimum is 10 doge): D7hVsZVDVEqrLUEmkQF84FZRjZEKDmr5oL