Waveform

Render waveforms from sound files as png images. Rendersound is the library used.

<?xml version="1.0"?>
<query>
    <userid><<id>></userid> <!-- required-->
    <userkey><<key>></userkey> <!-- required-->
    <action>[Action]</action> <!-- required-->
    <format>
        <output>waveform</output>
        <video_codec>png</video_codec>
        <width>500</width>
        <height>50</height>
        <color>FF0000</color>
        <factor>4</factor>
    </format>
</query>
{
    "query": {
        "userid": "<<id>>",
        "userkey": "<<key>>",
        "action": "[Action]",
        "format": {
            "output": "waveform",
            "video_codec": "png",
            "width": "500",
            "height": "50",
            "color": "FF0000",
            "factor": "4"
        }
    }
}

Parameter

Description

Allowed Values

Default Value

width

Specify the width of the output in pixels.

Positive Integer

500

height

Specify the height of the output in pixels.

Positive Integer

500

color

Specify color expressed as rgb hex.

RGB HEX values.

FF0000

factor

Specify the super sampling factor for anti aliasing.

Integer

4