/v1/tools/add_voice_effectpricedAdd a voice effect
Makes a voice or any sound sound as heard where it plays: through loudspeakers, a phone line, a horn, a small speaker, an intercom or headphones, in a hall, shop, warehouse, kitchen or cabin, with a chime or ring before it and the room's sound around it, as an airport announcement or a call. Its first 15 s free.
Takes src (file). Returns sound (the sound as heard where it plays, an M4A, longer than the sound given by the sound before it and the room's echo after it).
$0.01 a minute of sound, up to 90 minutes.
Afterwards, change through, room, first or around with adjust; quote_adjustment prices the change.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
src | string | Required | A file_id from create_upload, accepting audio/*, up to 2 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. |
through | one of | loudspeakers | What it plays through. Nothing (none) leaves the sound as it is. none: The sound as it is loudspeakers: Public address speakers, the far ones a beat behind ceiling_speakers: Speakers overhead, as in a shop horn: Hard and loud, as on a site phone: As a call carries it small_speaker: A speaker on a counter intercom: A small speaker in a ceiling, as on a plane or a train headphones: Close and fullnoneloudspeakersceiling_speakershornphonesmall_speakerintercomheadphones |
room | one of | none | The room it plays in, heard as its echo. No room (none) adds none. none: Nothing around it big_hall: Three seconds of echo shop: A bright room, under two seconds warehouse: Steel and concrete kitchen: Tiles, a short echo cabin: Small and closenonebig_hallshopwarehousekitchencabin |
first | one of | none | A sound played before it, through the same speaker, such as a chime. Nothing (none) starts with the sound. none: It starts with the sound three_chime: Three bell tones, rising two_chime: Ding, dong bright_chime: Two high tones, short ring: Rung twice, then answerednonethree_chimetwo_chimebright_chimering |
around | one of | none | The room's own sound, heard under it from a moment before it starts. Nothing (none) adds none. none: Only the sound busy_hall: Voices far off, air, wheels rolling shoppers: A few people, a till beeping machines: Lights humming, fans, something reversing fridge: A fridge humming engines: A steady low roar visitors: Quiet voices in a big roomnonebusy_hallshoppersmachinesfridgeenginesvisitors |
from | number | null | Only 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. |
to | number | null | Greater than from. |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/add_voice_effect \
-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.