Skip to content

Audio reference

Submit structured audio jobs to POST https://api.splixir.com/v1/jobs. Pass kind: "audio" or omit kind and use audio.* namespaced operations. Audio jobs cost $0.002 per output minute, prorated per second, with a $0.002 minimum per delivered job ($0.001 on Scale and Studio) and a $0.24 cap per job. When speed > 1.0 or trim_silence shrinks output below 25% of input length, Splixir applies a 25% decode floor. Explore interactive schemas in the REST API reference.

mp3, wav, m4a (m4b, mp4), aac, flac, ogg (oga), opus, aiff (aif, aifc), webm (mka), wma, and amr (awb).

  • Audio: mp3, m4a, aac, flac, opus, wav, ogg, aiff
  • Waveform (trailing waveform op): json, png
Limit Value
Duration (Free) 300 seconds max (5 minutes)
Duration (Paid tiers) 7,200 seconds max (120 minutes)
Operations per job 10 max
File size (Free) 50 MiB max
File size (PAYG, Basic, Pro, Scale, Studio) 500 MiB max
Normalize preset Target loudness True peak ceiling
streaming (default) -14 LUFS -1.0 dBTP
podcast -16 LUFS -1.5 dBTP
audiobook -18 LUFS -3.0 dBTP
broadcast -23 LUFS -1.0 dBTP
custom Custom targetLufs (-70 to -5) Optional truePeakDbtp (-9 to 0)
Output format Allowed sampleRateHz Allowed bitrateKbps
mp3 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 32 to 320
m4a, aac 7350, 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000 32 to 512
opus 8000, 12000, 16000, 24000, 48000 16 to 512
ogg 8000 to 192000 45 to 500
flac, wav, aiff 8000 to 192000 Lossless (bitrateKbps and quality disallowed)
  1. Upload a local file with POST /v1/uploads/presign (or multipart for files over 50 MiB), or pass a public HTTPS URL.
  2. Send POST https://api.splixir.com/v1/jobs with kind: "audio", input, and operations.
  3. Poll GET /v1/jobs/:id or verify webhooks until state is delivered.
Type Purpose
convert Encode format, bitrate, quality, or sample rate
normalize Scale integrated loudness and true peak
trim Cut start, end, or duration
trim_silence Remove leading or trailing silence
fade Apply fade-in and fade-out curves
gain Adjust gain with peak limiter
speed Change playback speed
pitch Shift pitch in semitones
equalize Apply named EQ preset or custom bands
compress Apply dynamic range compression
denoise Reduce background noise and rumble
channels Convert or swap mono/stereo channels
strip_metadata Remove or replace container metadata tags
tags Write tags, embed cover art, and add chapters
waveform Generate JSON peak array or PNG waveform (must be last)
concat Concatenate multiple audio inputs with optional crossfade
mix Mix a base and overlay track with gain, looping, and ducking

bitrateKbps and quality are mutually exclusive and disallowed on lossless formats (flac, wav, aiff).

Field Type Notes
format string One of the 8 audio output formats (required)
bitrateKbps integer 16 to 512 (subject to format bounds)
quality integer 1 to 100
sampleRateHz integer 7350 to 192000 (subject to format bounds)
compressionLevel integer 0 to 8 (flac only)
sampleFormat string s16, s24, s32, f32 (wav and aiff only; f32 wav only)
{ "type": "convert", "format": "mp3", "bitrateKbps": 192, "sampleRateHz": 44100 }
Field Type Notes
preset string streaming, podcast, audiobook, broadcast, custom (default streaming)
targetLufs number -70 to -5 (required for custom, disallowed for named presets)
truePeakDbtp number -9 to 0
loudnessRange number 1 to 20 (default 7)
{ "type": "normalize", "preset": "podcast" }

endSeconds and durationSeconds are mutually exclusive.

Field Type Notes
startSeconds number >= 0 (default 0)
endSeconds number > startSeconds
durationSeconds number > 0
{ "type": "trim", "startSeconds": 10, "durationSeconds": 120 }
Field Type Notes
mode string both, start, end (default both)
thresholdDb number -80 to -5 (default -50)
minSilenceSeconds number 0.05 to 30 (default 0.5)
keepSilenceSeconds number 0 to 5 (default 0.1)
{ "type": "trim_silence", "mode": "both", "thresholdDb": -50 }

At least one of fadeInSeconds or fadeOutSeconds must exceed 0.

Field Type Notes
fadeInSeconds number 0 to 60 (default 0)
fadeOutSeconds number 0 to 60 (default 0)
curve string linear, qsin, hsin, esin, log (default qsin)
{ "type": "fade", "fadeInSeconds": 2, "fadeOutSeconds": 3, "curve": "qsin" }
Field Type Notes
db number -48 to 48 (required)
limitPeakDbtp number -6 to 0 (default -0.5)
{ "type": "gain", "db": 3, "limitPeakDbtp": -0.5 }
Field Type Notes
factor number 0.25 to 4.0 (required)
{ "type": "speed", "factor": 1.25 }
Field Type Notes
semitones number -12 to 12, non-zero (required)
{ "type": "pitch", "semitones": 2 }

Named presets disallow bands; preset: "custom" requires 1 to 8 bands.

Field Type Notes
preset string voice_clarity, podcast_warmth, bass_boost, treble_boost, de_mud, custom (default custom)
bands array Objects with filter (lowshelf, peaking, highshelf), frequencyHz (20 to 20000), gainDb (-24 to 24), q (0.1 to 10, default 1.0)
{ "type": "equalize", "preset": "voice_clarity" }
Field Type Notes
preset string podcast, broadcast, gentle, custom (default podcast)
thresholdDb number -60 to 0
ratio number 1 to 20
attackMs number 0.1 to 500
releaseMs number 10 to 2000
makeupDb number 0 to 24
kneeDb number 0 to 12
{ "type": "compress", "preset": "podcast" }
Field Type Notes
strength string light, medium, aggressive (default medium)
highpassHz number 20 to 300
{ "type": "denoise", "strength": "medium", "highpassHz": 80 }
Field Type Notes
mode string mono, stereo, left, right, swap (required)
{ "type": "channels", "mode": "mono" }

setTags is unsupported when the output format is aac.

Field Type Notes
removeTags boolean Default true
removeArtwork boolean Default true
setTags object Optional title, artist, album, comment, genre, year (4 digits)
{ "type": "strip_metadata", "removeTags": true, "setTags": { "title": "Episode 1" } }

Writes metadata tags, embeds cover art, and adds chapters. Verification reads the finished file back and fails the job when a requested tag, the artwork, or a chapter is missing. Artwork and chapters need mp3, m4a, flac, ogg, or opus output. Ogg formats store cover art as a picture comment, the native Ogg method.

Field Type Notes
title, artist, album string Up to 200 chars each
albumArtist, composer string Up to 200 chars each
genre string Up to 64 chars
year string Four digits, for example "2026"
track, disc string Up to 16 chars, for example "1" or "1/12"
comment string Up to 500 chars
artworkUrl string Public HTTPS image URL to embed as cover art
chapters object[] 1 to 200 entries with startSeconds and title; endSeconds is optional
{
"type": "tags",
"title": "Episode 1",
"artist": "Splixir Pod",
"chapters": [
{ "startSeconds": 0, "title": "Intro" },
{ "startSeconds": 95, "title": "Interview" }
]
}

Every audio job report includes measured loudness for the input and the output (integratedLufs, truePeakDbtp, loudnessRangeLu). Jobs that use trim_silence also list the detected silence segments. Splixir measures these values from the files. It never estimates them.

Must be the final operation in operations.

Field Type Notes
format string json or png (default json)
bins integer 100 to 4000 (json only)
splitChannels boolean Default false
width integer 100 to 4096 (png only)
height integer 40 to 1024 (png only)
color string Hex color (png only)
backgroundColor string Hex color or "transparent" (png only)
{ "type": "waveform", "format": "json", "bins": 1200, "splitChannels": false }

Stitch two or more audio assets passed in the top-level inputs array. concat must be the first media operation in operations when combined with downstream operations.

Field Type Notes
crossfadeSeconds number Crossfade duration between clips (0 to 10, default 0)
normalize boolean Normalize loudness across joined clips (default true)
{
"inputs": ["https://cdn.example.com/intro.mp3", "https://cdn.example.com/episode.mp3"],
"operations": [
{ "type": "audio.concat", "crossfadeSeconds": 1.5, "normalize": true },
{ "type": "audio.convert", "format": "mp3", "bitrateKbps": 192 }
]
}

Layer an overlay track over a base track using a named inputs map (base and overlay) or a two-item inputs array. mix must be the first media operation in operations when combined with downstream operations.

Field Type Notes
overlayVolumeDb number Overlay gain in dB (-48 to 12, default -12)
ducking boolean Automatically lower overlay under speech (default false)
duckThresholdDb number Sidechain ducking threshold (-50 to -5, default -24)
duckRatio number Sidechain compression ratio (1 to 20, default 6)
loopOverlay boolean Loop overlay to match base duration (default false)
offsetSeconds number Delay overlay start in seconds (0 to 7200, default 0)
{
"inputs": {
"base": "https://cdn.example.com/voice.wav",
"overlay": "https://cdn.example.com/music.mp3"
},
"operations": [
{ "type": "audio.mix", "overlayVolumeDb": -14, "ducking": true, "loopOverlay": true },
{ "type": "audio.convert", "format": "mp3", "bitrateKbps": 192 }
]
}

Namespaced operations, multi-output, and job chaining

Section titled “Namespaced operations, multi-output, and job chaining”

Prefix any audio operation type with audio. (for example "audio.normalize", "audio.concat", or "audio.convert") to omit the top-level kind field. Supply outputs (up to 12 outputs) to render multiple masters or waveforms from one job, and reference prior delivered artifacts with { "jobId": "...", "output": "..." } inside input or inputs.