Transforms
Audio
Introduction
Audio tasks let you extract, transcode, and manipulate audio from video and audio files.
You can use audio tasks to:
- Extract audio tracks from video files
- Convert audio to different formats (MP3, AAC, WAV, OGG, FLAC, ALAC)
- Trim audio to specific segments
- Adjust quality settings
Creating an audio task
Provide a url and set kind to audio. All processing options go inside the options object.
Audio options
Audio tasks support the following optional properties inside the options object:
| Option | Type | Description |
|---|---|---|
format | string | Output format: mp3, aac, wav, ogg, flac, alac |
quality | string | Quality level: very_low, low, medium, high, very_high |
start | number | Start time in seconds |
end | number | End time in seconds |
Format
The output audio format.
Available formats: mp3, aac, wav, ogg, flac, alac.
Quality
The desired quality of the output audio.
Available values: very_low, low, medium, high, very_high.
Start / End
Trim the audio to a specific time range in seconds.
Supported inputs
Audio tasks work with:
- Audio files:
.mp3,.m4a,.wav,.ogg,.aac,.flac - Video files with audio tracks:
.mp4,.mov,.webm