1 | export interface UseMicrophoneOptions {
|
2 | onRecogniseInterim?: (text: string) => void;
|
3 | onRecognise?: (text: string) => void;
|
4 | onStart?: () => void;
|
5 | onStop?: () => void;
|
6 | onTimeout?: () => void;
|
7 | }
|
8 | export declare const useMicrophone: ({ onRecogniseInterim, onRecognise, onStart, onStop, onTimeout, }?: UseMicrophoneOptions) => {
|
9 | isListening: boolean;
|
10 | startListening: (timeout?: number | undefined) => void;
|
11 | stopListening: () => void;
|
12 | resetTimeout: (timeout: number) => void;
|
13 | };
|
14 | export default useMicrophone;
|