← All tools
Convert audio format
Audioaudio.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 modality | Audio file (URL) |
| Output modality | Audio file (GCS URL) |
| Max input duration | 3 hours |
| Max input size | 2 GB |
Parameters
| Param | Required | Description |
|---|---|---|
format | yes | Output container — mp3, wav, aac, flac |
bitrate | no | Target 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 transcodingaudio.concat— join clips first, then transcode the combined outputaudio.pipeline— chain trim + transcode in one stepvideo.extract_audio— pull the audio track out of a video first
Examples
WAV → MP3 192k
{
"format": "mp3",
"bitrate": "192k"
}