Skip to content

DocsGuides

Waveform video

Draw the sound of an audio file as a moving waveform or spectrum video, keeping the sound.

visualize makes a video from sound: a moving waveform or spectrum, with the sound kept. Audiograms let you share a podcast or a voice note where only video plays.

The request#

bash
curl "$VIDEXO_API_URL/v1/transcode" \
  -H "Authorization: Bearer $VIDEXO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": "https://example.com/episode.mp3",
  "filename": "audiogram.mp4",
  "visualize": {
    "style": "waveform",
    "width": 1280,
    "height": 720
  }
}'

audiogram.mp4: a 1280 by 720 video of the waveform at 25 frames a second, with the episode as its sound.

A spectrum#

bash
curl "$VIDEXO_API_URL/v1/transcode" \
  -H "Authorization: Bearer $VIDEXO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": "https://example.com/episode.mp3",
  "filename": "spectrum.mp4",
  "visualize": {
    "style": "spectrum",
    "width": 1080,
    "height": 1080
  }
}'

The colours are the filters' own in this version.