Scrub API
POST/v1/tools/extract_audiopriced

Extract audio from a video

Extracts the audio from a video as an audio file (M4A), the whole length, copied untouched when it can be. Useful on its own, and much smaller to send than the video when only the sound is needed, such as to transcribe it. A video with no sound is refused.

Takes src (file). Returns audio.

$0.01 an hour of video, up to 6 hours.

Fields

FieldTypeDefaultWhat it is
srcstringRequiredA file_id from create_upload, accepting video/*, up to 4 GB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result. Or a file_id (cf_…) from list_computers: a file on the person’s computer, run there by the Scrub app while it is open, at the price there.

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/extract_audio \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"src":"w/…/file_id"}'

Answer

{
  "ok": true,
  "result": {
    "job_id": "job_…",
    "status": "running",
    "price_usd": "$…"
  }
}

It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.

Every call can also answer an error: what comes back. Try it with your key from Account.