myart-arch/visual-music-sync
Soundtrack your video or image with real music: returns your visual synced to the best-matching section of a real, released song (MP4).
Run myart-arch/visual-music-sync 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 |
|---|---|---|---|
| mypart_api_key |
string
|
None
|
|
| media |
string
|
The image or video to soundtrack (a file or a public/signed URL).
|
|
| text |
string
|
Optional text to steer the search, e.g. 'upbeat indie'.
|
|
| num_results |
integer
|
3
Min: 1 Max: 5 |
How many previews to make, best fit first.
|
| results_mode |
None
|
discovery
|
None
|
| keep_original_audio |
boolean
|
False
|
Keep the video's own sound (voice, ambience) and lower the music while it plays.
|
| show_label |
boolean
|
True
|
Show the song's rank, artist and title for the first seconds of each preview.
|
| end_card |
boolean
|
True
|
End each preview with a short card showing the song and a code to license it.
|
{
"type": "object",
"title": "Input",
"required": [
"mypart_api_key",
"media"
],
"properties": {
"text": {
"type": "string",
"title": "Text",
"x-order": 2,
"nullable": true,
"description": "Optional text to steer the search, e.g. 'upbeat indie'."
},
"media": {
"type": "string",
"title": "Media",
"format": "uri",
"x-order": 1,
"description": "The image or video to soundtrack (a file or a public/signed URL)."
},
"end_card": {
"type": "boolean",
"title": "End Card",
"default": true,
"x-order": 7,
"description": "End each preview with a short card showing the song and a code to license it."
},
"show_label": {
"type": "boolean",
"title": "Show Label",
"default": true,
"x-order": 6,
"description": "Show the song's rank, artist and title for the first seconds of each preview."
},
"num_results": {
"type": "integer",
"title": "Num Results",
"default": 3,
"maximum": 5,
"minimum": 1,
"x-order": 3,
"description": "How many previews to make, best fit first."
},
"results_mode": {
"enum": [
"discovery",
"popular"
],
"type": "string",
"title": "results_mode",
"description": "An enumeration.",
"default": "discovery",
"x-order": 4
},
"mypart_api_key": {
"type": "string",
"title": "Mypart Api Key",
"format": "password",
"x-order": 0,
"writeOnly": true,
"x-cog-secret": true
},
"keep_original_audio": {
"type": "boolean",
"title": "Keep Original Audio",
"default": false,
"x-order": 5,
"description": "Keep the video's own sound (voice, ambience) and lower the music while it plays."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}