@picovoice/picovoice-react
Version:
React component for Picovoice SDK for Web
14 lines • 718 B
TypeScript
import { PicovoiceOptions, PorcupineDetection, PorcupineKeyword, PorcupineModel, RhinoContext, RhinoInference, RhinoModel } from '@picovoice/picovoice-web';
export declare function usePicovoice(): {
wakeWordDetection: PorcupineDetection | null;
inference: RhinoInference | null;
contextInfo: string | null;
isLoaded: boolean;
isListening: boolean;
error: Error | null;
init: (accessKey: string, keyword: PorcupineKeyword, porcupineModel: PorcupineModel, context: RhinoContext, rhinoModel: RhinoModel, options?: PicovoiceOptions) => Promise<void>;
start: () => Promise<void>;
stop: () => Promise<void>;
release: () => Promise<void>;
};
//# sourceMappingURL=use_picovoice.d.ts.map