To generate a waveform using the audiowaveform library, we need to do it in two steps.

Step 1: Create a binary format (.dat) file from the audio file
audiowaveform -i 3.mp3 -o 3.dat -z 256 -b 8

Step 2: Generate a image (.png) file using the binary data
audiowaveform -i 3.dat -o 3.png -z 256

#Linux #Ubuntu #audiowaveform #waveform #MP3 #WAV #FLAC #Ogg #Vorbis #Opus

audiowaveform is a C++ command-line application that generates waveform data from either MP3, WAV, FLAC, Ogg Vorbis, or Opus format audio files. Waveform data can be used to produce a visual rendering of the audio.

How to Install
https://github.com/bbc/audiowaveform?tab=readme-ov-file#installation

Install on Ubuntu
sudo add-apt-repository ppa:chris-needham/ppa
sudo apt-get update
sudo apt-get install audiowaveform

#Linux #Ubuntu #audiowaveform #waveform #MP3 #WAV #FLAC #Ogg #Vorbis #Opus

GitHub - bbc/audiowaveform: C++ program to generate waveform data and render waveform images from audio files

C++ program to generate waveform data and render waveform images from audio files - bbc/audiowaveform

GitHub