import * as ort from 'isomorphic-onnxruntime'; /** * SuperVAD engine that manages the ONNX session, runs inference and keeps buffer of the last 10 tokens. * This class is not concurrency-safe and should not be used in parallel. */ export declare class SuperVADEngine { /** * Number of samples per token */ static readonly TOKEN_SIZE = 320; /** * Create from existing inference session. * @param session inference session * @returns engine */ static createFromSession(session: ort.InferenceSession): SuperVADEngine; /** * Create from path or URL. * @param pathOrUrl path or URL * @param options session options * @returns engine */ static create(pathOrUrl: string, options?: ort.InferenceSession.SessionOptions): Promise; /** * Create from buffer. * @param buffer buffer * @param options session options * @returns engine */ static createFromBuffer(buffer: ArrayBufferLike, options?: ort.InferenceSession.SessionOptions): Promise; private _buffer; private _session; private constructor(); /** * Get the underlying inference session. */ get session(): ort.InferenceSession; /** * Run inference on the given audio token. * @param token audio token * @returns probability of the token being speech */ predict(token: Float32Array): Promise; /** * Release resources. */ destroy(): void; }