Audiogram Maker
Operator: Abdulla Al Fahad. How tools are built and checked
Social feeds autoplay video and ignore audio, so a podcast clip needs a picture that moves. An audiogram is that picture: the show's artwork, a title, bars that jump with the voice and, often, captions. Pick the audio, optionally a cover image and an SRT file, set the title and colours, and the browser records the result as a video. The bars are not a canned animation: each frame takes a short window of the actual samples around that moment, runs an FFT and draws what it finds, so a laugh, a pause and a loud word all look different.
The spectrum maths, video shapes and caption timing
The audio can be any file the browser decodes (MP3, WAV, M4A, OGG, FLAC, or the soundtrack of a video) up to an hour long, but the finished video is limited to 10 minutes, so you choose a start and an end.
The cover image is JPG, PNG, WebP, GIF (first frame) or BMP, shrunk to 1024 pixels in memory. Captions come from an SRT, WebVTT or SBV file of up to 5 MB, and appear in a fixed style: a dark box with white bold text near the bottom.
Four shapes are offered: 1080 by 1080, 720 by 1280, 1280 by 720 and 864 by 1080. Four visualisers: rising bars, mirrored bars, a waveform line, and a ring of bars around a round cover image. The video is recorded at up to 30 frames a second with the audio on a single track.
How it works
For each frame the page takes 1024 samples centred on that time, multiplies them by a Hann window and runs a radix-2 FFT. The spectrum from the first FFT bin (47 Hz at a 48 kHz sample rate) up to 9 kHz, or the Nyquist limit for low sample rates, is split into your chosen number of bands, 12 to 64, spaced by a constant ratio but never narrower than one bin. A band's level is its mean power in decibels against a full-scale sine, with a tilt of 3 dB per octave above 500 Hz so treble shows up in speech, and the range from -62 dB to -8 dB is mapped onto 0 to 1. A rise is drawn immediately and a fall is limited to 2.2 times the bar's full height per second, which makes the bars look like meters rather than flicker. The same drawing function runs for the preview and the recording, so scrubbing the preview slider shows exactly what the video will contain.
Typical uses
- Posting a 45-second answer from an interview to a feed as a 1080 by 1080 video with the guest's name under the artwork
- Turning a 30-second voice memo into a 720 by 1280 story with a ring of 32 bars around the cover image
- Adding captions from an existing SRT to a 60-second clip for viewers who watch with the sound off
- Making a 1280 by 720 teaser from the first 90 seconds of an episode for a podcast page
- Showing a song demo as a mirrored-bar visual at 864 by 1080 for a feed that favours 4:5
Building one
- Choose the audio file, then set the start and end of the part you want.
- Add a cover image if you have one, and an SRT or VTT file for captions.
- Type the title and a second line, pick the shape and visualiser, and adjust the colours.
- Use Play and the preview slider to check a loud passage and a quiet one.
- Click Render audiogram and wait for the progress bar; the clip is recorded as it plays.
Example
A 1 kHz test tone at half scale, 32 bars, 48 kHz audio
Amplitude 0.5 (-6 dBFS)
1024-sample Hann window
32 bands, 47 Hz to 9 kHzBar levels from the code (0 to 1, bands counted from 1)
Band 19 (984 Hz to 1172 Hz) 1.00
Band 18 (844 Hz to 984 Hz) 0.78
Band 20 (1172 Hz to 1359 Hz) 0.20
Band 17 0.17
Band 16 0.06
Every other band 0.00Things to check before you rely on it
The clip is recorded as it plays, so a 45-second audiogram takes 45 seconds to produce and the preview keeps drawing until it is done.
Very quiet recordings sit near the floor of the level range, so the bars barely move. Normalise or compress the audio first.
The circle style needs a cover image to wrap around; without one it draws a ring in the middle of the visualiser area.
- Choose bars for speech and the waveform line for music with a strong low end; the line shows the actual wave shape over 30 ms.
- Captions use the times of the whole audio file. If you trim the start to 2:10, a cue at 2:12 appears 2 seconds into the video, with no need to edit the SRT.
Best practices
- Keep the title to two lines; longer ones are cut after three lines in the frame.
- Preview a loud passage and a quiet one: bars are scaled between -62 dB and -8 dB, so a recording that peaks below -20 dB barely moves them.
Where the bands fall
With a 48 kHz clip a 1024-point FFT has bins 46.9 Hz wide. At 32 bars the first eighteen bands are therefore one bin each, running from 47 Hz up to about 840 Hz, and only the last fourteen widen: 844 to 984 Hz, 984 to 1172 Hz, then 1.2 to 1.4 kHz and on up to 9 kHz, each wider than the one before. That is why the left of the display is crowded with voice fundamentals and the right is a handful of wide bars for consonants and breath.
At 12 bars the spread is wider from the start (47, 94, 141, 188, 328, 469 Hz and so on up to 9 kHz). At 16 kHz audio the top limit drops to just under 8 kHz, the Nyquist frequency, and the bands share that narrower range.
How captions line up after a trim
A cue keeps the time it has in the source audio. The video clock starts at your chosen start, so a cue at 2:12 in a clip trimmed from 2:10 appears at 0:02,, and a cue that ends before your start never shows.