audio-censor
Replaces each listed range of an uploaded recording with a censor sound — the server lane of the site's /audio-censor, with the same sounds its preview plays: beep_tv (1 kHz tone), beep_radio (440 Hz), silence, duck (the original at 15 %), reverse (the original backwards), pitch (the original pitched up), noise, or custom (your own sound from `custom`, looped to fill the range). Ranges are clipped to the file, ranges under 20 ms are dropped, an overlap keeps the earlier range, at most 200 are used. To bleep words, take their times from a `transcribe` run. Stage the input with POST /v1/uploads first. ASYNCHRONOUS: the call returns 202 with a run id — poll GET /v1/runs/{id}, or register a webhook.
v1 beta server · 10 tokens
Price (server): 2 tokens per MB of input, at least 10 per call; paid plans: −5%, rounded up. The exact figure for your file: POST /v1/tools/audio-censor/estimate.
Call it
POST https://tembrica.com/v1/tools/audio-censor/runs
Authorization: Bearer $TIMBRICA_KEY
Idempotency-Key: <your retry-safe key>
Content-Type: application/json
Input
| Field | Type | Required | Notes |
|---|---|---|---|
audio | object | yes | Staged input file, up to 50 MB. Any audio file, or a video whose sound track is taken: mp3, wav, ogg, flac, aac, m4a, webm, aiff, wma, opus, mp4, mov, 3gp, caf, mp2, ac3, amr. Upload it with POST /v1/uploads (multipart `file`, or JSON {"url":"…"}). |
regions | array | yes | Ranges to cover, {start, end, type} in seconds, with optional levels: `amp` — peak of a generated sound (0.01–1, default 0.7), `freq` — beep pitch in Hz (100–4000), `gain` — multiplier of the custom sound (0.05–4, default 1). |
custom | object | no | Your own censor sound, up to 20 MB — required when a range has type `custom`. The first 30 s are used, looped to fill each range. |
crossfade | integer | no |
Fade at each edge of a covered range, milliseconds.
default: 20 |
format | string | no |
Output format. Defaults to the input's format when it is one of these, otherwise mp3. opus is delivered as Ogg Opus with the .ogg extension.
one of: mp3, wav, ogg, flac, m4a, aac, opus, wma, aiff, webm |
bitrate | integer | no | Output bitrate in kbit/s, for lossy formats. Omit for the format's default. |
Input file
Stage it with POST /v1/uploads (multipart `file`, or JSON {"url": "…"}), then pass {"file_id": "<id>"} in each listed input field.
file fields: audio, custom
Errors it can return
validation_failed
input_too_large
insufficient_tokens
concurrency_limited
internal_error
History
- v1 — 2026-11-19 — Initial release (server lane, async, per-MB pricing).
This contract cannot change without a new version and a line above: a test compares the published schema, pricing and limits against a committed lockfile and fails the build otherwise. Subscribe to /v1/changelog to be told when something moves.