/v1/tools/mix_a_recordingpricedMix and finish a sound
A recording made into one finished sound from its timeline: cut into clips with gaps where you want them, each clip's voice cleaned up or played through a speaker, in a room or on a phone line, speech and music made for the clips that say what they hold, Scrub's chimes and room sounds laid in, and everything mixed into one M4A as long as the last clip's end. A clip whose sound is already made is used as it is and not made again.
Takes timeline (sound clips on tracks). Returns sound (the mix as one sound, an M4A, as long as the last clip's end, brought to an even loudness without clipping). One job: making the speech, then voicing the scripts, then making the music, then cleaning up the voices, then adding the effects, then adding the effects, then adding the effects, then mixing.
$0.05 a minute of sound + $0.08 per 30 seconds of music, at least $0.10, at most $0.30 + $0.02 per 12 seconds of speech, up to 90 minutes. quote gives its exact price.
Afterwards, change the result with adjust on the job of the step that made it, listed in the result.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
timeline | object | Required | The tracks and their clips, as Mix sounds takes them, each clip with the work to do on it named by its action and holding that action's settings: clean_up_voice, add_voice_effect, add_voice_effect_2 and add_voice_effect_3 (through and room, stacked in that order) on its file; text_to_speech, voice_script or generate_music to make its sound when it has no file yet. |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/mix_a_recording \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"timeline":{}}'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.