hama-js
Version:
G2P, phoneme-ASR, and P2G inference for Node, Bun, and browsers, powered by a self-contained WASM engine (no onnxruntime).
5 lines (4 loc) • 326 B
TypeScript
export declare function loadWasm(): Promise<Uint8Array>;
/** Resolve `.hama` weight bytes from an explicit path (a `.hama` file, a sibling
* of a `.onnx` path, or a directory containing the asset) or the packaged asset. */
export declare function resolveModelBytes(pathOrDir: string | undefined, asset: string): Uint8Array;