@likeyoureyes/expo-speech-recognition
Version:
Speech Recognition for React Native Expo projects - forked from jamsch/expo-speech-recognition
11 lines • 655 B
TypeScript
import type { ExpoSpeechRecognitionNativeEvents } from "./ExpoSpeechRecognitionModule.types";
/**
* This hook allows you to listen to native events emitted by the `ExpoSpeechRecognitionModule`.
*
* Note: this is not the same as the `SpeechRecognition` event listener on the web speech API.
*
* @param eventName The name of the event to listen to
* @param listener The listener function to call when the event is emitted
*/
export declare function useSpeechRecognitionEvent<K extends keyof ExpoSpeechRecognitionNativeEvents>(eventName: K, listener: ExpoSpeechRecognitionNativeEvents[K]): void;
//# sourceMappingURL=useSpeechRecognitionEvent.d.ts.map