lucataco/extract-audio

Simple tool to extract audio from a video file

Public
13 runs

Run lucataco/extract-audio with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
video
string
Video file to extract audio from
output_format
None
mp3
Output audio format
audio_quality
None
high
Audio quality level
volume_boost
number
1

Min: 0.1

Max: 5

Volume multiplier (1.0 = original volume, 2.0 = double volume)
normalize_audio
boolean
False
Normalize audio levels to prevent clipping
noise_reduction
boolean
False
Apply basic noise reduction filter
trim_start
number
0
Seconds to trim from the beginning
trim_end
number
0
Seconds to trim from the end (0 = no trimming)
fade_in
number
0

Max: 10

Fade in duration in seconds
fade_out
number
0

Max: 10

Fade out duration in seconds

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}
Example API response
View prediction
'https://replicate.delivery/xezq/wDiyZURsCv6XMtsEO4qr16fNeePsroA66UYLP2KViaYo7fjUB/extracted_audio.mp3'