expo-speech-recognition 0.2.25 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts CHANGED
@@ -1,8 +1,4 @@
1
- import {
2
- ExpoSpeechRecognitionModule,
3
- ExpoSpeechRecognitionModuleEmitter,
4
- } from "./ExpoSpeechRecognitionModule";
5
- import type { ExpoSpeechRecognitionNativeEventMap } from "./ExpoSpeechRecognitionModule.types";
1
+ import { ExpoSpeechRecognitionModule } from "./ExpoSpeechRecognitionModule";
6
2
 
7
3
  // Export the SpeechRecognition APIs
8
4
  export {
@@ -63,28 +59,24 @@ export const getDefaultRecognitionService =
63
59
  export const getAssistantService =
64
60
  ExpoSpeechRecognitionModule.getAssistantService;
65
61
 
66
- export const addSpeechRecognitionListener = <
67
- T extends keyof ExpoSpeechRecognitionNativeEventMap,
68
- >(
69
- eventName: T,
70
- listener: (ev: ExpoSpeechRecognitionNativeEventMap[T]) => void,
71
- ) => ExpoSpeechRecognitionModuleEmitter.addListener(eventName, listener);
72
-
73
- export {
74
- type ExpoSpeechRecognitionOptions,
75
- type AndroidIntentOptions,
76
- type ExpoSpeechRecognitionNativeEventMap,
77
- type AVAudioSessionCategoryOptionsValue,
78
- type AVAudioSessionModeValue,
79
- type AVAudioSessionCategoryValue,
80
- type AudioEncodingAndroidValue,
81
- type AudioSourceOptions,
82
- type RecordingOptions,
83
- type IOSTaskHintValue,
84
- type SetCategoryOptions,
85
- type ExpoSpeechRecognitionErrorCode,
86
- type ExpoSpeechRecognitionErrorEvent,
87
- type ExpoSpeechRecognitionResultEvent,
88
- type ExpoSpeechRecognitionResult,
89
- type ExpoSpeechRecognitionResultSegment,
62
+ export const addSpeechRecognitionListener =
63
+ ExpoSpeechRecognitionModule.addListener;
64
+
65
+ export type {
66
+ ExpoSpeechRecognitionOptions,
67
+ AndroidIntentOptions,
68
+ ExpoSpeechRecognitionNativeEventMap,
69
+ AVAudioSessionCategoryOptionsValue,
70
+ AVAudioSessionModeValue,
71
+ AVAudioSessionCategoryValue,
72
+ AudioEncodingAndroidValue,
73
+ AudioSourceOptions,
74
+ RecordingOptions,
75
+ IOSTaskHintValue,
76
+ SetCategoryOptions,
77
+ ExpoSpeechRecognitionErrorCode,
78
+ ExpoSpeechRecognitionErrorEvent,
79
+ ExpoSpeechRecognitionResultEvent,
80
+ ExpoSpeechRecognitionResult,
81
+ ExpoSpeechRecognitionResultSegment,
90
82
  } from "./ExpoSpeechRecognitionModule.types";