@ai-coustics/aic-sdk-wasm 0.23.0, Core SDK 0.23.0. API index · WebAssembly quickstart.
The binding throws JavaScript Error or RangeError objects. It does not export SDK exception classes, an error-code enum or a structured code property. TypeScript signatures do not list thrown exceptions. Catch errors around construction, initialization, model loading, token renewal and processing, and release already-created handles in finally.
The delegated core also defines voiceprint errors for other interfaces. This package exposes no enrollment or voiceprint methods. Binding misuse, invalid JavaScript types, initialization failures and access after
free() can produce JavaScript or WebAssembly errors outside the SDK mapping; do not depend on their exact text or class.
A failed updateBearerToken preserves the previous token. A successful call checks local format, not backend acceptance. A failed initialization requires successful reinitialization before submitting more audio. A failed enhancement call does not guarantee the input array is unchanged.
ProcessorContext named context, a numeric requestedLevel and ProcessorParameter imported from the package. See enhancement for the full control API and lifecycle for cleanup.