Skip to main content
VESDK/Flutter/Guides/Audio Overlays

Audio Overlays

The VideoEditor SDK for Flutter supports adding audio overlays to videos for stunning effects.

VideoEditor SDK for Flutter supports adding predefined audio libraries from which an audio clip can be overlayed on top of the video's soundtrack. Inside the audio tool, the audio clip can be trimmed and balanced with the original soundtrack of the video. The corresponding tool can be customized using the configuration.audio object.

For details on how to modify the options for the tool, take a look at the configuration section.

Adding audio clips#

Audio clips can be inserted into configuration.audio.categories, which is an array of AudioClipCategory objects. An AudioClipCategory object holds the metadata of an audio clip category, such as its preview image and the title and has an array of AudioClip objects, which again hold the metadata for an AudioClip, such as its audioUri, thumbnailUri and the duration. The AudioClip class is not optimized to handle remote resources which therefore should be downloaded in advance and then passed as a local resource.

final audioOptions = AudioOptions(categories: [
AudioClipCategory("custom", "Custom",
items: [AudioClip("elsewhere", "assets/elsewhere.mp3")])
]);
final configuration = Configuration();