@ai-coustics/aic-sdk-wasm 0.23.0, Core SDK 0.23.0. API index · WebAssembly quickstart.
Model
Model.fromBytes; its constructor is private. Model storage is retained by each processor, VAD or analyzer created from it. Those instances remain valid if the original Model handle is freed.
Model.free
finally and do not use the handle afterward. Garbage collection does not guarantee timely cleanup; free() does not acknowledge session termination. Dependent processors, VAD instances and analyzers retain shared model storage until they are freed.
Model.Symbol.dispose
free() when the runtime supports Symbol.dispose; do not call both on the same handle. Otherwise, call free() in finally.
Model.fromBytes
.aicmodel from bytes and returns a new model. The wrapper copies bytes into owned aligned storage; the caller may release or change the original Uint8Array after this call. Loading can throw for invalid, incompatible or unsupported data, or allocation failure. There is no Model.download or Model.fromFile in this package. Fetch the bytes asynchronously in your application, then call this synchronous factory.
Model.getId
Model.getOptimalBlockSize
Model.getOptimalSampleRate
getVersion
0.23.0 for this release. It is not a query of a separately installed native library.