Skip to main content
PUT
/
adapt.auto_cut_down
adapt.auto_cut_down
curl --request PUT \
  --url https://api.soundpiece.co/adapt.auto_cut_down \
  --header 'Content-Type: application/json' \
  --data '
{
  "audio": {
    "asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "target_duration": 123,
  "callback": {
    "url": "<string>",
    "context": {}
  },
  "start_type": "any",
  "end_type": "smart"
}
'
{
  "computation": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "generating",
    "asset_ids": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ]
  }
}

Body

application/json
audio
AssetSource · object
required

The audio source to be separated

idempotency_key
string<uuid>
required

A unique uuid to allow replaying the request if an unexpected failure occurs

target_duration
required
callback
Callback · object

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

start_type
enum<string>
default:any

Whether the start of the cut can be anywhere in the audio or at the beginning

Available options:
any,
beginning
end_type
enum<string>
default:smart

Whether the end of the cut should be faded out or a smart algorithm should be used to determine the end time

Available options:
smart,
fade

Response

Successful Response

computation
AudioComputation · object
required

A computation to track the generation of audio