Asset
An asset is the representation of either a separation response object or a source file. Asset objects are returned for any actions dealing with the separation/transcription/alignment service.
Example
Here's an example of what an asset payload can look like. Note that the following example is missing a client id.
{
name: "COOKIN-EUROPA_Drum.mp3",
id: "clksrfev21879f1ofh6v1daag",
fileType: "audio/mpeg",
format: "mp3",
link: "<LINK TO FILE>"
}
Fields
Key | Type | Optional | Example | Description |
---|---|---|---|---|
id | string | no | cuid1234 | The unique id of the Asset, following the cuid format. |
name | string | no | MySong.wav | The name of the asset. |
format | string | no | wav, mp3, flac | Describes the file format for the asset file. |
link | string | yes | https://link/to/file | A temporary link for downloading the asset. (Optional) |
fileType | string | no | audio/mpeg | MIME type of the asset file, used as a Content-Type header. |
clientId | string | no | cuid5678 | The id of the client associated with the asset object. |