๐Ÿ“˜ Module 1: SDK Initialization

Overview

This guide helps Android developers integrate the Passive SDK into their application. The following steps outline how to properly initialize the SDK in your Android app using your provided credentials.

๐Ÿ›  Prerequisites

Before starting, ensure that:

๐Ÿงฉ Step 1: Import Required Classes

In your Application class, import the SDK initialization and callback interfaces:

import sonde_passive.client.SondeSdk
import sonde_passive.client.util.SondeInitCallback

โš™๏ธ Step 2: Initialize the SDK

Initialize the SDK inside the onCreate() method of your custom Application class. Make sure this is done after calling super.onCreate().

override fun onCreate() {
    super.onCreate()

    SondeSdk.voiceAnalysisEngine.init(
        context = this,
        clientId = "<YOUR CLIENT ID>",
        clientSecret = "<YOUR CLIENT SECRET>",
        clientCode = "<YOUR CLIENT CODE>", // Pass null if not applicable
        callback = object : SondeInitCallback {
            override fun onSuccess(msg: String) {
                Log.d("SondeSDK", "Initialization successful: $msg")
            }

            override fun onError(error: Throwable) {
                Log.e("SondeSDK", "Initialization failed: ${error.message}", error)
            }
        }
    )
}

๐Ÿ“Œ Notes

โœ… Next Steps

Continue with:

Module 2: Enrollment