andreasjansson
/
audio-to-waveform
- Public
- 39 runs
Run andreasjansson/audio-to-waveform with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
audio |
string
|
Audio file to create waveform from
|
|
caption_text |
string
|
|
Caption text for the video
|
bg_color |
string
|
#000000
|
Background color of waveform
|
fg_alpha |
number
|
0.75
|
Opacity of foreground waveform
|
bars_color |
string
|
#ffffff
|
Color of waveform bars
|
bar_count |
integer
|
100
|
Number of bars in waveform
|
bar_width |
number
|
0.4
|
Width of bars in waveform. 1 represents full width, 0.5 represents half width, etc.
|
width |
integer
|
1000
|
Video width
|
waveform_height |
integer
|
200
|
Height of the waveform
|
caption_height |
integer
|
150
|
Height of the caption text box
|
caption_left_right_padding |
integer
|
50
|
Padding to the left and right of the caption text
|
caption_top_padding |
integer
|
10
|
Padding to the top of the caption text
|
{
"type": "object",
"title": "Input",
"required": [
"audio"
],
"properties": {
"audio": {
"type": "string",
"title": "Audio",
"format": "uri",
"x-order": 0,
"description": "Audio file to create waveform from"
},
"width": {
"type": "integer",
"title": "Width",
"default": 1000,
"x-order": 7,
"description": "Video width"
},
"bg_color": {
"type": "string",
"title": "Bg Color",
"default": "#000000",
"x-order": 2,
"description": "Background color of waveform"
},
"fg_alpha": {
"type": "number",
"title": "Fg Alpha",
"default": 0.75,
"x-order": 3,
"description": "Opacity of foreground waveform"
},
"bar_count": {
"type": "integer",
"title": "Bar Count",
"default": 100,
"x-order": 5,
"description": "Number of bars in waveform"
},
"bar_width": {
"type": "number",
"title": "Bar Width",
"default": 0.4,
"x-order": 6,
"description": "Width of bars in waveform. 1 represents full width, 0.5 represents half width, etc."
},
"bars_color": {
"type": "string",
"title": "Bars Color",
"default": "#ffffff",
"x-order": 4,
"description": "Color of waveform bars"
},
"caption_text": {
"type": "string",
"title": "Caption Text",
"default": "",
"x-order": 1,
"description": "Caption text for the video"
},
"caption_height": {
"type": "integer",
"title": "Caption Height",
"default": 150,
"x-order": 9,
"description": "Height of the caption text box"
},
"waveform_height": {
"type": "integer",
"title": "Waveform Height",
"default": 200,
"x-order": 8,
"description": "Height of the waveform"
},
"caption_top_padding": {
"type": "integer",
"title": "Caption Top Padding",
"default": 10,
"x-order": 11,
"description": "Padding to the top of the caption text"
},
"caption_left_right_padding": {
"type": "integer",
"title": "Caption Left Right Padding",
"default": 50,
"x-order": 10,
"description": "Padding to the left and right of the caption text"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}