14 lines
527 B
TypeScript
14 lines
527 B
TypeScript
import * as ort from "onnxruntime-web";
|
|
import { ModelFactory, SpeechProbabilities } from "./common";
|
|
export declare class SileroLegacy {
|
|
private ortInstance;
|
|
private _session;
|
|
private _h;
|
|
private _c;
|
|
private _sr;
|
|
constructor(ortInstance: typeof ort, _session: ort.InferenceSession, _h: ort.Tensor, _c: ort.Tensor, _sr: ort.Tensor);
|
|
static new: ModelFactory;
|
|
reset_state: () => void;
|
|
process: (audioFrame: Float32Array) => Promise<SpeechProbabilities>;
|
|
}
|
|
//# sourceMappingURL=legacy.d.ts.map
|