Audio content
Overview
Audio content is a key part of making awesome video.
Video Editor SDK can play, trim, merge and add audio content to a video.
- Banuba does not deliver audio content for Video Editor SDK.
- Video Editor can apply audio file stored on the device. The SDK is not responsible for downloading audio content except Soundstripe, Mubert
There are 2 approaches of using audio content:
AudioBrowser
- specific module and a set of screens that includes built in support of browsing and applying audio content within video editor. The user does not leave the sdk while using audio.External API
- the client implements specific API for managing audio content. The user leaves the SDK and is taken to an app screen when audio is requested.
Audio Browser
Audio Browser is a specific Android module that allows to browse, play and apply audio content within video editor.
It supports 3 sources for audio content:
-
My Library
- includes audio content available on the user's device -
Soundstripe
- includes built in integration with Soundstripe API. -
Mubert
- includes built in integration with Mubert API. -
Banuba Music
- includes build in integration with Banuba Music.
Add the dependency
implementation "com.banuba.sdk:ve-audio-browser-sdk:${version}"
to your gradle file and specify AudioBrowserKoinModule
Koin module in VideoEditorModule
startKoin {
...
modules(
+ AudioBrowserKoinModule().module,
VideoEditorKoinModule().module
)
}
to integrate AudioBrowser
.
Connect My Library
My Library
is a default implementation in AudioBrowser
. It allows the user to apply audio that is available on a device.
Use AudioBrowserMusicProvider
implementation in VideoEditorModule to
enable My Library
.
single<ContentFeatureProvider<TrackData, Fragment>>(named("musicTrackProvider")) {
AudioBrowserMusicProvider()
}
Connect Soundstripe
Soundstripe is a service for providing the best audio tracks for creating video content. Your users will be able to add audio tracks while recording or editing video content.
The feature is not activated by default.
Please contact Banuba representatives to know more about using this feature.
Use SoundstripeProvider
implementation in VideoEditorModule
single<ContentFeatureProvider<TrackData, Fragment>>(named("musicTrackProvider")){
SoundstripeProvider()
}
Connect Mubert
Mubert is a service that delivers Generative AI Music. Your users will be able to add audio tracks while recording or editing video content.
Please contact Mubert representatives to request keys.
Set Mubert license and token keys in VideoEditorModule.
single {
MubertApiConfig(
mubertLicence = "...",
mubertToken = "..."
)
}
single<ContentFeatureProvider<TrackData, Fragment>>(named("musicTrackProvider")) {
AudioBrowserMusicProvider()
}
Use MubertApiConfig
to adjust Mubert settings.
Property | Available values | Description |
---|---|---|
generatedTrackDurationSec | Number > 0 | duration that applied for generated tracks in seconds |
generateTrackBitrate | any of the following values: 32, 96, 128, 192, 256, 320 | sound quality measured in kbps |
generatedTrackIntencity | any of the following values: low, medium, high | instrumental saturation (number of stems) for generated tracks |
generatedTrackFormat | any of the following values: mp3, wav, flac | format of generated tracks |
generatedTracksAmount | Number > 0 | amount of tracks to generate for selected category |
Banuba Music
Over 35 GB of royalty-free tracks available from within the Video Editor SDK. Your users could check them out through an inbuilt music browser and legally include them in their content.
The feature is not activated by default.
Please contact Banuba representatives to know more about using this feature.
Use BanubaMusicProvider
implementation in VideoEditorModule
single<ContentFeatureProvider<TrackData, Fragment>>(named("musicTrackProvider")){
BanubaMusicProvider()
}