Integrating Vsdk Libraries - Android
To run your exported project on Android, you need to include the appropriate VSDK libraries.
Download
Open the Vivoka Console and navigate to your Project Settings.
Go to the Downloads section.
In the search bar:
Set Platform to
AndroidSet Resource Type to
Libraries
Download the latest version of the libraries you need:
You will always need the core VSDK library:
vsdk-<version>-android.zip
Depending on the technologies and providers used in your project (e.g., ASR, TTS), download additional dependency packages such as:vsdk-csdk-asr-<version>-android-deps-vsdk-<version>.zip
Technology | Sdk | File |
|---|---|---|
Asr | csdk |
|
Tts | csdk |
|
Speech Enhancement | s2c |
|
Voice biometrics | idvoice |
|
tssv |
| |
NLU | vnlu |
|
If you want to use multiple technologies you must use the same vsdk version.
Each ZIP file contains:
.aarfiles (Android libraries)Javadoc files (optional for IDE documentation)
Configure Gradle
Extract all .aar files into /app/libs/ folder in your Android project.
To include the .aar files in your Android build:
Open your app-level Gradle file
/app/build.gradleInside the
dependencies {}block, add the following line:
implementation fileTree(include: ['*.aar'], dir: 'libs', exclude: [])
For more details, you can check our samples available on console.
Important Notes
Make sure that .so files are not removed from your final apk if your are using an optimizer like pro-guard. A simple solution will be to add doNotStrip inside android.buildTypes.packagingOptions:
android {
// ...
buildTypes {
release {
packagingOptions { doNotStrip '**/*.so' }
}
}
}
Technical Summary
The Vsdk libraries are compiled and built with the following technical specifications:
Component | Version / Target |
|---|---|
Java Version | Compiled with Java 21, targeting Java 17 |
Gradle Wrapper |
|
Android Gradle Plugin |
|
compileSdk |
|
targetSdk |
|
minSdk |
|
These specifications ensure compatibility with modern Android environments while maintaining support for devices running Android 6.0 (API level 23) and above.
When integrating the Vsdk libraries, make sure your project’s build configuration aligns with these versions to prevent compilation or runtime compatibility issues.