The /audio/waveform Robot

Our /audio/waveform robot

Transloadit offers a variety of features to reduce audio size while maintaining quality, as well as add effects like loops or watermarks.

The /audio/waveform Robot generates waveform images for your audio files and allows you to change their colors and dimensions.

The /audio/waveform Robot's Parameters

Name Type Default Description
format String "image" The format of the result file. Can be "image" or "json".
width Integer 256 The width of the resulting image if the format "image" was selcted.
height Integer 64 The height of the resulting image if the format "image" was selcted.
background_color String "00000000" The background color of the resulting image in the "rrggbbaa" format (red, green, blue, alpha), if the format "image" was selected.
center_color String "000000ff" The color used in the center of the gradient. The format is "rrggbbaa" (red, green, blue, alpha).
outer_color String "000000ff" The color used in the outer parts of the gradient. The format is "rrggbbaa" (red, green, blue, alpha).

Example use cases featuring the /audio/waveform robot

See the robot in action with some live demos and code samples right here on our website:

Generate a waveform image from an audio file

Here you can see a quick example of the Assembly Instructions required to create this encoding pipeline. More information is available in the Live demo

{
 "steps": {
    "wav": {
      "use": ":original",
      "robot": "/audio/encode",
      "preset": "wav",
      "ffmpeg_stack": "v2.2.3"
    },
    "waveform": {
      "robot": "/audio/waveform",
      "use": "wav",
      "result": true,
      "width": 300,
      "height": 200,
      "background_color": "ffffffff",
      "outer_color": "ff0000aa",
      "center_color": "660000aa"
    }
  }
}


Did you know?

You can easily combine Robots to create powerful workflows, unique to your business.

This is the power of Transloadit.