← All tools
Multi-op audio pipeline
Audiocompositeaudio.pipeline
in: audioout: audio
Chain multiple audio operations in one step.
Pricing
- Price
- 6.25 cr / second
Prices in credits (1 credit = $0.01).
Multi-op Audio Pipeline
Chain up to 10 audio operations in a single execution, eliminating intermediate uploads.
When to use
- Trim then transcode — cut a segment and immediately re-encode it.
- Complex workflows — multiple dependent steps without round-trip overhead.
- Atomic processing — all operations succeed or the whole pipeline fails cleanly.
Inputs & outputs
| Input modality | Audio file (URL) |
| Output modality | Audio file (GCS URL) |
| Max operations | 10 |
| Max input size | 2 GB |
Parameters
| Param | Required | Description |
|---|---|---|
operations | yes | Ordered array of 1–10 operation objects. Each object is one of: { trim }, { transcode }, { concat }. |
Each operation uses the same parameter shape as the corresponding standalone capability.
Examples
Trim first 30 s, then convert to MP3
{
"type": "audio.pipeline",
"input": { "audio_url": "gs://infery-prod-media/example/recording.wav" },
"params": {
"operations": [
{ "trim": { "start": 0, "end": 30 } },
{ "transcode": { "format": "mp3", "bitrate": "192k" } }
]
}
}
Transcode to AAC at reduced bitrate
{
"type": "audio.pipeline",
"input": { "audio_url": "gs://infery-prod-media/example/master.flac" },
"params": {
"operations": [
{ "trim": { "start": 10, "end": 120 } },
{ "transcode": { "format": "aac", "bitrate": "128k" } }
]
}
}
Related capabilities
audio.transcode— standalone format conversionaudio.trim— standalone time-range extractionaudio.concat— standalone clip joiningvideo.pipeline— equivalent multi-op pipeline for video files
Examples
Trim then transcode
{
"operations": [
{
"trim": {
"start": 0,
"end": 30
}
},
{
"transcode": {
"format": "mp3"
}
}
]
}