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.
|
| licensed |
boolean
|
False
|
Only use songs from MyPart's licensable catalogs.
|
| keep_original_audio |
boolean
|
False
|
Keep the video's own sound (voice, ambience) and play the music under it as background music.
|
| music_volume |
integer
|
30
Min: 1 Max: 100 |
Background music level in %, used only with keep_original_audio when the video has sound.
|
| show_label |
boolean
|
False
|
Show the song's rank, artist and title in a corner for the first seconds of each preview.
|
| keep_video_quality |
boolean
|
False
|
Keep the video's original resolution and quality. Takes longer; off gives 720p previews faster.
|
{
"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)."
},
"licensed": {
"type": "boolean",
"title": "Licensed",
"default": false,
"x-order": 4,
"description": "Only use songs from MyPart's licensable catalogs."
},
"show_label": {
"type": "boolean",
"title": "Show Label",
"default": false,
"x-order": 7,
"description": "Show the song's rank, artist and title in a corner 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."
},
"music_volume": {
"type": "integer",
"title": "Music Volume",
"default": 30,
"maximum": 100,
"minimum": 1,
"x-order": 6,
"description": "Background music level in %, used only with keep_original_audio when the video has sound."
},
"mypart_api_key": {
"type": "string",
"title": "Mypart Api Key",
"format": "password",
"x-order": 0,
"writeOnly": true,
"x-cog-secret": true
},
"keep_video_quality": {
"type": "boolean",
"title": "Keep Video Quality",
"default": false,
"x-order": 8,
"description": "Keep the video's original resolution and quality. Takes longer; off gives 720p previews faster."
},
"keep_original_audio": {
"type": "boolean",
"title": "Keep Original Audio",
"default": false,
"x-order": 5,
"description": "Keep the video's own sound (voice, ambience) and play the music under it as background music."
}
}
}
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"
}