API

add-silence

Pads an uploaded recording with silence at the start and/or end, and inserts silent gaps at the positions you list — the server lane of the site's /add-silence. Inserted gaps are stereo at the source's sample rate. At least one of `pad_start`, `pad_end` or `markers` must add something. 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/add-silence/estimate.

Call it

POST https://tembrica.com/v1/tools/add-silence/runs
Authorization: Bearer $TIMBRICA_KEY
Idempotency-Key: <your retry-safe key>
Content-Type: application/json

Input

FieldTypeRequiredNotes
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":"…"}).
pad_start number no Silence before the audio, seconds.
pad_end number no Silence after the audio, seconds.
markers array no Gaps inserted inside the audio: at `position` (seconds of the original) a silence of `duration` seconds.
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

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.