Infery.ai
← All tools

Extract audio track

Video

video.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 modalityVideo file (URL)
Output modalityAudio file (GCS URL)
Supported output formatsmp3, wav, aac
Max input duration30 min

Parameters

ParamRequiredDescription
formatyesOutput audio format — mp3, wav, or aac
bitratenoTarget 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 audio
  • video.pipeline — chain trim and audio extraction in one request

Examples

MP3 at 192k

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