Scrub API
POST/v1/tools/clean_up_voicepriced

Clean up a voice

Cleans up the voice in a recording, audio or video, whole or in stretches, each with its own setting: sharp S sounds and bursts of hiss softened. A video's picture is kept as it is. Returns the recording and the moments found and treated, with their times, so later work can aim at them.

Takes src (file). Returns recording, moments (the moments found and treated, one row each in order, with when each starts and ends, its setting and how many dB it was turned down; one found where the sound was left as it is says so, at 0).

$0.01 a minute of sound, up to 360 minutes.

Afterwards, change parts, s_sounds, highs_from, listen_above, sensitivity, amount, recovery or steady with adjust; quote_adjustment prices the change.

Fields

FieldTypeDefaultWhat it is
srcstringRequiredA file_id from create_upload, accepting audio/*, 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.
partsarray[]The stretches to clean up, each a from and a to in seconds, and any settings of its own; left out, the whole recording. Outside the stretches the sound is left as it is.
s_soundsone ofsofterHow hard sharp S sounds and bursts of hiss are softened. As recorded (as_recorded) leaves them; Softer (softer) turns them down while the voice is untouched; Softest (softest) turns down quieter ones too; Custom (custom) uses the six values below.
as_recordedsoftersoftestcustom
highs_fromnumber4000With S sounds Custom, above this the sound can be turned down; below it the voice is never touched. In hertz.
listen_abovenumber11000With S sounds Custom, only sound this high decides when to turn down. In hertz.
sensitivitynumber-54With S sounds Custom, how quiet a burst may be and still be turned down; lower turns down more. In dB.
amountnumber20With S sounds Custom, how hard it turns down, as a ratio to 1.
recoverynumber40With S sounds Custom, how soon the highs come back after a burst. In milliseconds.
steadynumber4With S sounds Custom, how much softer the highs are all the time, as well. In dB.
fromnumbernullOnly this part, where it starts, in seconds into the sound; the result is that part, and only it is priced. Left out, from the start.
tonumbernullGreater than from.

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/clean_up_voice \
  -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.