← All tools
Extract audio track
Videovideo.extract_audio
in: videoout: audio
Extract audio track from a video file.
Pricing
- Price
- 6.25 cr / second
Prices in credits (1 credit = $0.01).
Extract Audio Track
Extract the audio track from a video file and return it as a standalone audio file.
When to use
- Create a podcast or audio-only version of a recorded talk or webinar.
- Extract background music from a video to reuse elsewhere.
- Transcribe audio — feed the extracted track to a speech-to-text pipeline.
Inputs & outputs
| Input modality | Video file (URL) |
| Output modality | Audio file (GCS URL) |
| Supported output formats | mp3, wav, aac |
| Max input duration | 30 min |
Parameters
| Param | Required | Description |
|---|---|---|
format | yes | Output audio format — mp3, wav, or aac |
bitrate | no | Target bitrate as <int>[k|M], e.g. 192k. Applies to compressed formats. |
Examples
Extract MP3 at 192k
{
"type": "video.extract_audio",
"input": { "video_url": "gs://infery-prod-media/example/webinar.mp4" },
"params": { "format": "mp3", "bitrate": "192k" }
}
Extract lossless WAV for further processing
{
"type": "video.extract_audio",
"input": { "video_url": "gs://infery-prod-media/example/recording.mp4" },
"params": { "format": "wav" }
}
Related capabilities
video.trim— trim the video to the relevant section before extracting audiovideo.pipeline— chain trim and audio extraction in one request
Examples
MP3 at 192k
{
"format": "mp3",
"bitrate": "192k"
}