Skip to main content
PUT
/
analyse.compute_metadata
analyse.compute_metadata
curl --request PUT \
  --url https://api.soundpiece.co/analyse.compute_metadata \
  --header 'Content-Type: application/json' \
  --data '
{
  "audio": {
    "asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "callback": {
    "url": "<string>",
    "context": {}
  }
}
'
{
  "computation": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "generating",
    "metadata": {
      "genres": {},
      "moods": {},
      "mood_themes": {},
      "instruments": {},
      "tempo": 123,
      "key": "<string>"
    }
  }
}

Body

application/json
audio
AssetSource · object
required

The audio source to compute metadata for

callback
Callback · object

Configuration for a callback that will be called when the computation is complete

Response

Successful Response

computation
AudioMetadataComputation · object
required