UNPKG

web-wake-word

Version:

A web package for keyword detection

25 lines (22 loc) 515 B
export interface ModelParam { modelToUse: string; threshold: number; bufferCount: number; onKeywordDetected: (result: { prediction: number; model: string; cntBuf: number; }) => void; } export class KeywordDetector { constructor( modelsFolderPath: string, modelParams: ModelParam[] | string, wasmBasePath: string, audioWorkletPath: string ); setLicense(licenseKey: string): Promise<boolean>; init(): Promise<void>; startListening(): void; stopListening(): void; }