Infery.ai
← All tools

Convert audio format

Audio

audio.transcode

in: audioout: audio

Re-encode an audio file to a different format/bitrate.

Pricing

Price
6.25 cr / second

Prices in credits (1 credit = $0.01).

Convert Audio Format

Re-encode an audio file to a different container format and/or bitrate.

When to use

  • Convert for compatibility — WAV or FLAC source needs MP3/AAC for web delivery.
  • Reduce file size — lower bitrate for streaming or podcast distribution.
  • Normalize format — standardize uploads to a single codec before pipeline processing.

Inputs & outputs

Input modalityAudio file (URL)
Output modalityAudio file (GCS URL)
Max input duration3 hours
Max input size2 GB

Parameters

ParamRequiredDescription
formatyesOutput container — mp3, wav, aac, flac
bitratenoTarget bitrate as <int>[k|M], e.g. 192k, 320k. Ignored for lossless formats.

Examples

WAV to MP3 at 192k

{
  "type": "audio.transcode",
  "input": { "audio_url": "gs://infery-prod-media/example/recording.wav" },
  "params": { "format": "mp3", "bitrate": "192k" }
}

FLAC to AAC for mobile delivery

{
  "type": "audio.transcode",
  "input": { "audio_url": "gs://infery-prod-media/example/master.flac" },
  "params": { "format": "aac", "bitrate": "128k" }
}

Related capabilities

  • audio.trim — cut to a time range before transcoding
  • audio.concat — join clips first, then transcode the combined output
  • audio.pipeline — chain trim + transcode in one step
  • video.extract_audio — pull the audio track out of a video first

Examples

WAV → MP3 192k

{
  "format": "mp3",
  "bitrate": "192k"
}