Skip to main content

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.

Please get in touch to get your clientID and clientSecret values.

SwitchboardSDK.initialize("Your client ID", "Your client secret")