init (KrispSDK)

Initializes the SDK and loads configured models. Must be called before using any filter methods.

Returns: Promise<void>

Throws:

  • SDK_ALREADY_INITIALIZED - If SDK is already initialized
  • INVALID_MODEL_URL - If model URLs are invalid

Example:

const sdk = new KrispSDK({...})
                          
await sdk.init();