API

audio-volume

Changes the level of an uploaded recording on our server, the same way the site's /volume does: a constant `gain_db`; or `normalize`, which evens the level out with ffmpeg's dynamic normaliser; or an `envelope` — gain points over time, for ducking a passage or riding a quiet speaker up. Any boost is held under −1 dBFS by a limiter, so a loud source is raised without clipping. 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-volume/estimate.

Call it

POST https://tembrica.com/v1/tools/audio-volume/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":"…"}).
gain_db number no Constant gain, dB. Ignored when `normalize` or `envelope` is given.
default: 0
normalize number no Even out the level with ffmpeg's dynamic normaliser (dynaudnorm, peak 0.95), then apply this many dB (0 = none). Replaces `gain_db`.
envelope array no Gain that changes over time: points {t, g} — t in seconds, g a LINEAR gain (1 = unchanged, 0.5 ≈ −6 dB, 2 ≈ +6 dB). Interpolated linearly in gain between points and held before the first and after the last. Replaces `gain_db`, `normalize`, `fade_in` and `fade_out` — put fades into the curve.
fade_in number no Fade-in length, seconds.
fade_out number no Fade-out length, 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.