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/CHANGELOG.md +7 -0
- package/README.md +24 -38
- package/android/src/main/java/expo/modules/speechrecognition/ExpoSpeechRecognitionModule.kt +42 -0
- package/build/ExpoSpeechRecognitionModule.types.d.ts +30 -2
- package/build/ExpoSpeechRecognitionModule.types.d.ts.map +1 -1
- package/build/ExpoSpeechRecognitionModule.types.js.map +1 -1
- package/build/ExpoSpeechRecognitionModule.web.d.ts.map +1 -1
- package/build/ExpoSpeechRecognitionModule.web.js +85 -14
- package/build/ExpoSpeechRecognitionModule.web.js.map +1 -1
- package/build/ExpoWebSpeechRecognition.d.ts.map +1 -1
- package/build/ExpoWebSpeechRecognition.js +0 -2
- package/build/ExpoWebSpeechRecognition.js.map +1 -1
- package/build/index.d.ts +2 -3
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/ios/ExpoSpeechRecognitionModule.swift +55 -3
- package/ios/ExpoSpeechRecognizer.swift +182 -112
- package/ios/MicrophoneRequester.swift +33 -0
- package/ios/SpeechRecognizerRequester.swift +34 -0
- package/package.json +1 -1
- package/src/ExpoSpeechRecognitionModule.types.ts +30 -2
- package/src/ExpoSpeechRecognitionModule.web.ts +102 -16
- package/src/ExpoWebSpeechRecognition.ts +1 -2
- package/src/index.ts +21 -29
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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";
|