@ricky0123/vad-react
Version:
Powerful, user-friendly, client-side voice activity detector (VAD) for React apps
18 lines • 666 B
TypeScript
import type { RealTimeVADOptions } from "@ricky0123/vad-web";
export { utils } from "@ricky0123/vad-web";
interface ReactOptions {
startOnLoad: boolean;
userSpeakingThreshold: number;
}
export type ReactRealTimeVADOptions = RealTimeVADOptions & ReactOptions;
export declare const getDefaultReactRealTimeVADOptions: (model: "legacy" | "v5") => ReactRealTimeVADOptions;
export declare function useMicVAD(options: Partial<ReactRealTimeVADOptions>): {
listening: boolean;
errored: string | false;
loading: boolean;
userSpeaking: boolean;
pause: () => void;
start: () => void;
toggle: () => void;
};
//# sourceMappingURL=index.d.ts.map