Integrating the JVM SDK
The Switchboard JVM SDK allows developers to use the Switchboard SDK from Java and Kotlin on any platform. For example, you can run Switchboard SDK audio graphs on a Linux server inside an app built with the Micronaut framework.
Integration can be done by simply including a single JAR file that contains both the high-level Kotlin classes and the low-level native code.
For example, using Gradle you can include all JAR files from the libs
directory like this:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
Initializing the SDK
Before you make any calls to the Switchboard SDK you need to initialize it. You can do this anywhere in your project.
To initialize our SDK in your project, please sign up here to receive your appID
and appSecret
values.
It is essential to initialize the Switchboard SDK before any other Extension.
- Kotlin
SwitchboardSDK.initialize("Your app ID", "Your app secret")