Infery.ai
← All tools

Multi-op audio pipeline

Audiocomposite

audio.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 modalityAudio file (URL)
Output modalityAudio file (GCS URL)
Max operations10
Max input size2 GB

Parameters

ParamRequiredDescription
operationsyesOrdered 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 conversion
  • audio.trim — standalone time-range extraction
  • audio.concat — standalone clip joining
  • video.pipeline — equivalent multi-op pipeline for video files

Examples

Trim then transcode

{
  "operations": [
    {
      "trim": {
        "start": 0,
        "end": 30
      }
    },
    {
      "transcode": {
        "format": "mp3"
      }
    }
  ]
}