
lucataco/extract-audio

Simple tool to extract audio from a video file
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
|
{
"type": "object",
"title": "Input",
"required": [
"video"
],
"properties": {
"video": {
"type": "string",
"title": "Video",
"format": "uri",
"x-order": 0,
"description": "Video file to extract audio from"
},
"fade_in": {
"type": "number",
"title": "Fade In",
"default": 0,
"maximum": 10,
"minimum": 0,
"x-order": 8,
"description": "Fade in duration in seconds"
},
"fade_out": {
"type": "number",
"title": "Fade Out",
"default": 0,
"maximum": 10,
"minimum": 0,
"x-order": 9,
"description": "Fade out duration in seconds"
},
"trim_end": {
"type": "number",
"title": "Trim End",
"default": 0,
"minimum": 0,
"x-order": 7,
"description": "Seconds to trim from the end (0 = no trimming)"
},
"trim_start": {
"type": "number",
"title": "Trim Start",
"default": 0,
"minimum": 0,
"x-order": 6,
"description": "Seconds to trim from the beginning"
},
"volume_boost": {
"type": "number",
"title": "Volume Boost",
"default": 1,
"maximum": 5,
"minimum": 0.1,
"x-order": 3,
"description": "Volume multiplier (1.0 = original volume, 2.0 = double volume)"
},
"audio_quality": {
"enum": [
"low",
"medium",
"high",
"lossless"
],
"type": "string",
"title": "audio_quality",
"description": "Audio quality level",
"default": "high",
"x-order": 2
},
"output_format": {
"enum": [
"mp3",
"wav",
"aac",
"m4a",
"ogg"
],
"type": "string",
"title": "output_format",
"description": "Output audio format",
"default": "mp3",
"x-order": 1
},
"noise_reduction": {
"type": "boolean",
"title": "Noise Reduction",
"default": false,
"x-order": 5,
"description": "Apply basic noise reduction filter"
},
"normalize_audio": {
"type": "boolean",
"title": "Normalize Audio",
"default": false,
"x-order": 4,
"description": "Normalize audio levels to prevent clipping"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output",
"format": "uri"
}
'https://replicate.delivery/xezq/wDiyZURsCv6XMtsEO4qr16fNeePsroA66UYLP2KViaYo7fjUB/extracted_audio.mp3'