expo-speech-recognition 0.0.1 → 0.2.16

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.
Files changed (62) hide show
  1. package/.eslintrc.js +12 -0
  2. package/.prettierignore +6 -0
  3. package/README.md +893 -0
  4. package/android/build.gradle +43 -0
  5. package/android/src/main/AndroidManifest.xml +2 -0
  6. package/android/src/main/java/expo/modules/speechrecognition/DelayedFileStreamer.kt +232 -0
  7. package/android/src/main/java/expo/modules/speechrecognition/ExpoAudioRecorder.kt +217 -0
  8. package/android/src/main/java/expo/modules/speechrecognition/ExpoSpeechRecognitionModule.kt +424 -0
  9. package/android/src/main/java/expo/modules/speechrecognition/ExpoSpeechRecognitionOptions.kt +97 -0
  10. package/android/src/main/java/expo/modules/speechrecognition/ExpoSpeechService.kt +669 -0
  11. package/app.plugin.js +105 -0
  12. package/build/ExpoSpeechRecognitionModule.d.ts +5 -0
  13. package/build/ExpoSpeechRecognitionModule.d.ts.map +1 -0
  14. package/build/ExpoSpeechRecognitionModule.js +6 -0
  15. package/build/ExpoSpeechRecognitionModule.js.map +1 -0
  16. package/build/ExpoSpeechRecognitionModule.types.d.ts +579 -0
  17. package/build/ExpoSpeechRecognitionModule.types.d.ts.map +1 -0
  18. package/build/ExpoSpeechRecognitionModule.types.js +2 -0
  19. package/build/ExpoSpeechRecognitionModule.types.js.map +1 -0
  20. package/build/ExpoSpeechRecognitionModule.web.d.ts +12 -0
  21. package/build/ExpoSpeechRecognitionModule.web.d.ts.map +1 -0
  22. package/build/ExpoSpeechRecognitionModule.web.js +201 -0
  23. package/build/ExpoSpeechRecognitionModule.web.js.map +1 -0
  24. package/build/ExpoWebSpeechRecognition.d.ts +98 -0
  25. package/build/ExpoWebSpeechRecognition.d.ts.map +1 -0
  26. package/build/ExpoWebSpeechRecognition.js +387 -0
  27. package/build/ExpoWebSpeechRecognition.js.map +1 -0
  28. package/build/ExpoWebSpeechRecognition.web.d.ts +13 -0
  29. package/build/ExpoWebSpeechRecognition.web.d.ts.map +1 -0
  30. package/build/ExpoWebSpeechRecognition.web.js +17 -0
  31. package/build/ExpoWebSpeechRecognition.web.js.map +1 -0
  32. package/build/constants.d.ts +344 -0
  33. package/build/constants.d.ts.map +1 -0
  34. package/build/constants.js +344 -0
  35. package/build/constants.js.map +1 -0
  36. package/build/index.d.ts +26 -0
  37. package/build/index.d.ts.map +1 -0
  38. package/build/index.js +18 -0
  39. package/build/index.js.map +1 -0
  40. package/build/useSpeechRecognitionEvent.d.ts +11 -0
  41. package/build/useSpeechRecognitionEvent.d.ts.map +1 -0
  42. package/build/useSpeechRecognitionEvent.js +20 -0
  43. package/build/useSpeechRecognitionEvent.js.map +1 -0
  44. package/expo-module.config.json +9 -0
  45. package/ios/EXSpeechRecognitionPermissionRequester.swift +42 -0
  46. package/ios/ExpoSpeechRecognition.podspec +27 -0
  47. package/ios/ExpoSpeechRecognitionException.swift +84 -0
  48. package/ios/ExpoSpeechRecognitionModule.swift +480 -0
  49. package/ios/ExpoSpeechRecognizer.swift +714 -0
  50. package/ios/SpeechRecognitionOptions.swift +183 -0
  51. package/package.json +43 -6
  52. package/src/ExpoSpeechRecognitionModule.ts +16 -0
  53. package/src/ExpoSpeechRecognitionModule.types.ts +622 -0
  54. package/src/ExpoSpeechRecognitionModule.web.ts +268 -0
  55. package/src/ExpoWebSpeechRecognition.ts +512 -0
  56. package/src/ExpoWebSpeechRecognition.web.ts +17 -0
  57. package/src/constants.ts +349 -0
  58. package/src/globals.d.ts +1 -0
  59. package/src/index.ts +74 -0
  60. package/src/useSpeechRecognitionEvent.ts +30 -0
  61. package/tsconfig.json +8 -0
  62. package/index.js +0 -0
@@ -0,0 +1,579 @@
1
+ import type { PermissionResponse } from "expo-modules-core";
2
+ import type { NativeModule } from "react-native";
3
+ import type { AudioEncodingAndroid, AVAudioSessionCategory, AVAudioSessionCategoryOptions, AVAudioSessionMode, RecognizerIntentEnableLanguageSwitch, RecognizerIntentExtraLanguageModel, TaskHintIOS } from "./constants";
4
+ export type AVAudioSessionCategoryValue = (typeof AVAudioSessionCategory)[keyof typeof AVAudioSessionCategory];
5
+ export type ExpoSpeechRecognitionErrorCode =
6
+ /** The user called `ExpoSpeechRecognitionModule.abort()`. */
7
+ "aborted"
8
+ /** Audio recording error. */
9
+ | "audio-capture"
10
+ /** There was an error in the speech recognition grammar or semantic tags, or the chosen grammar format or semantic tag format was unsupported. */
11
+ | "bad-grammar"
12
+ /** Locale is not supported by the speech recognizer. */
13
+ | "language-not-supported"
14
+ /** Network communication required for completing the recognition failed. */
15
+ | "network"
16
+ /** No final speech was detected. */
17
+ | "no-speech"
18
+ /** Permission to use speech recognition or microphone was not granted. */
19
+ | "not-allowed"
20
+ /** Recognizer is unavailable. */
21
+ | "service-not-allowed"
22
+ /** The recognizer is busy and cannot accept any new recognition requests. */
23
+ | "busy"
24
+ /** (Android only) An unknown client-side error occurred. */
25
+ | "client";
26
+ /**
27
+ * Events that are dispatched from the native side
28
+ */
29
+ export type ExpoSpeechRecognitionNativeEventMap = {
30
+ /** Fired when there's a speech result. The result may be partial or final */
31
+ result: {
32
+ isFinal: boolean;
33
+ results: {
34
+ transcript: string;
35
+ /**
36
+ * Value ranging between between 0.0, 1.0, and -1 (unavailable) indicating transcript confidence.
37
+ */
38
+ confidence: number;
39
+ /**
40
+ * An array of transcription segments that represent the parts of the transcription, as identified by the speech recognizer.
41
+ *
42
+ * Notes for Android:
43
+ *
44
+ * - This is only available for SDK 34+ (Android 14+)
45
+ * - The segment parts are split up by words.
46
+ * - The segments are only available for the first transcript
47
+ */
48
+ segements: {
49
+ /** The start timestamp of the utterance, e.g. 1000 */
50
+ startTimeMillis: number;
51
+ /** The end timestamp of the utterance, e.g. 1500 */
52
+ endTimeMillis: number;
53
+ /** The text portion of the transcript, e.g. "Hello world" */
54
+ segment: string;
55
+ /** Value ranging between between 0.0, 1.0, and -1 (unavailable) indicating the confidence of the specific segement */
56
+ confidence: number;
57
+ }[];
58
+ }[];
59
+ };
60
+ error: {
61
+ error: ExpoSpeechRecognitionErrorCode;
62
+ message: string;
63
+ };
64
+ start: null;
65
+ speechstart: null;
66
+ speechend: null;
67
+ /** A final result is returned with no significant recognition */
68
+ nomatch: null;
69
+ /** Audio capturing had started */
70
+ audiostart: {
71
+ /**
72
+ * The uri is set when `recordingOptions.persist` is enabled.
73
+ * Do not attempt to use this file until the `audioend` event is emitted.
74
+ *
75
+ * Example URIs:
76
+ *
77
+ * - Android: `file:///data/user/0/expo.modules.speechrecognition.example/cache/recording_1720678500903.wav`
78
+ * - iOS: `file:///path/to/Library/Caches/audio_CD5E6C6C-3D9D-4754-9188-D6FAF97D9DF2.caf`
79
+ */
80
+ uri: string | null;
81
+ };
82
+ /** Audio capturing had ended */
83
+ audioend: {
84
+ /**
85
+ * The uri is set when `recordingOptions.persist` is enabled.
86
+ *
87
+ * Example URIs:
88
+ *
89
+ * - Android: `file:///data/user/0/expo.modules.speechrecognition.example/cache/recording_1720678500903.wav`
90
+ * - iOS: `file:///path/to/Library/Caches/audio_CD5E6C6C-3D9D-4754-9188-D6FAF97D9DF2.caf`
91
+ */
92
+ uri: string | null;
93
+ };
94
+ end: null;
95
+ soundstart: null;
96
+ soundend: null;
97
+ };
98
+ export type ExpoSpeechRecognitionOptions = {
99
+ /** [Default: "en-US"] The language of the speech recognition */
100
+ lang?: string;
101
+ /** [Default: false] Note for iOS: final results are only available after speech recognition has stopped */
102
+ interimResults?: boolean;
103
+ /** [Default: 5] The maximum number of alternative transcriptions to return. */
104
+ maxAlternatives?: number;
105
+ /**
106
+ * An array of strings that will be used to provide context to the speech recognition engine.
107
+ *
108
+ * On Android, this configures [`EXTRA_BIASING_STRINGS`](https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_BIASING_STRINGS) in the recognizer intent (API level 33+).
109
+ *
110
+ * On iOS, this configures [`SFSpeechRecognitionRequest.contextualStrings`](https://developer.apple.com/documentation/speech/sfspeechrecognitionrequest/1649391-contextualstrings).
111
+ */
112
+ contextualStrings?: string[];
113
+ /** [Default: false] Continuous recognition. Note: if false on iOS, recognition will run until no speech is detected for 3 seconds */
114
+ continuous?: boolean;
115
+ /** [Default: false] Prevent device from sending audio over the network. Only enabled if the device supports it.
116
+ *
117
+ * Use `getSupportedLocales()` to verify if the locale is installed on the device prior to enabling this option.
118
+ */
119
+ requiresOnDeviceRecognition?: boolean;
120
+ /**
121
+ * [Default: false] Include punctuation in the recognition results. This applies to full stops and commas.
122
+ *
123
+ * On Android, this configures [`EXTRA_ENABLE_FORMATTING`](https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_ENABLE_FORMATTING) in the recognizer intent (API level 33+).
124
+ *
125
+ * On iOS, this configures [`SFSpeechRecognitionRequest.addsPunctuation`](https://developer.apple.com/documentation/speech/sfspeechrecognitionrequest/3930023-addspunctuation).
126
+ */
127
+ addsPunctuation?: boolean;
128
+ /**
129
+ * The package name of the speech recognition service to use.
130
+ * If not provided, the default service will be used.
131
+ *
132
+ * Obtain the supported packages by running `ExpoSpeechRecognitionModule.getSpeechRecognitionServices()`
133
+ *
134
+ * e.g. "com.google.android.as" or "com.samsung.android.bixby.agent"
135
+ */
136
+ androidRecognitionServicePackage?: string;
137
+ /**
138
+ * Extra options to provide to the Android Recognition intent.
139
+ *
140
+ * For a full list of options, see https://developer.android.com/reference/android/speech/RecognizerIntent
141
+ */
142
+ androidIntentOptions?: Partial<AndroidIntentOptions>;
143
+ /**
144
+ * Audio source options to pass to the recognizer.
145
+ *
146
+ * This option can be used to recognize audio from a local or remote file URI.
147
+ */
148
+ audioSource?: AudioSourceOptions;
149
+ /**
150
+ * Audio recording options for persisting the audio to a local file path.
151
+ */
152
+ recordingOptions?: RecordingOptions;
153
+ /**
154
+ * Default: `"android.speech.action.RECOGNIZE_SPEECH"`
155
+ *
156
+ * The kind of intent action
157
+ *
158
+ * Intents:
159
+ *
160
+ * - [`android.speech.action.RECOGNIZE_SPEECH`](https://developer.android.com/reference/android/speech/RecognizerIntent#ACTION_RECOGNIZE_SPEECH) which performs speech recognition (default)
161
+ * - [`android.speech.action.VOICE_SEARCH_HANDS_FREE`](https://developer.android.com/reference/android/speech/RecognizerIntent#ACTION_VOICE_SEARCH_HANDS_FREE) - prompts the user for speech without requiring the user's visual attention or touch input
162
+ * - [`android.speech.action.WEB_SEARCH`](https://developer.android.com/reference/android/speech/RecognizerIntent#ACTION_WEB_SEARCH) - displays a web search result or trigger another type of action based on the user's speech.
163
+ */
164
+ androidIntent?: "android.speech.action.RECOGNIZE_SPEECH" | "android.speech.action.VOICE_SEARCH_HANDS_FREE" | "android.speech.action.WEB_SEARCH";
165
+ /**
166
+ * The hint for the speech recognition task.
167
+ *
168
+ * Default: `"unspecified"`
169
+ *
170
+ * Docs: https://developer.apple.com/documentation/speech/sfspeechrecognitiontaskhint
171
+ */
172
+ iosTaskHint?: IOSTaskHintValue;
173
+ /**
174
+ * The audio category for the speech recognition task.
175
+ *
176
+ * Use this option to configure the default audio session category and mode prior to starting speech recognition.
177
+ *
178
+ * **Caution:** confirm that the category, options and mode are compatible with the audio source.
179
+ *
180
+ * By default, the audio session category and mode are set to:
181
+ *
182
+ * - category: `playAndRecord`
183
+ * - options: `defaultToSpeaker` and `allowBluetooth`
184
+ * - mode: `measurement`
185
+ *
186
+ * Docs: https://developer.apple.com/documentation/avfaudio/avaudiosession/category
187
+ */
188
+ iosCategory?: SetCategoryOptions;
189
+ };
190
+ export type IOSTaskHintValue = (typeof TaskHintIOS)[keyof typeof TaskHintIOS];
191
+ export type RecordingOptions = {
192
+ /**
193
+ * Whether to persist the audio to a local file path.
194
+ *
195
+ * Default: false
196
+ */
197
+ persist: boolean;
198
+ /**
199
+ * Default: `FileSystem.CacheDirectory`. This changes the default storage location for the audio file.
200
+ */
201
+ outputDirectory?: string;
202
+ /**
203
+ * Default: `"recording_${timestamp|uuid}.[wav|caf]"`. This changes the file name for the audio file.
204
+ */
205
+ outputFileName?: string;
206
+ /**
207
+ * Default: undefined. The sample rate of the output audio file.
208
+ *
209
+ * Only supported on iOS
210
+ *
211
+ * Default sample rate is: 16000 on Android, 44100/48000 on iOS
212
+ */
213
+ outputSampleRate?: number;
214
+ /**
215
+ * Default: undefined. The encoding of the output audio file.
216
+ *
217
+ * Only supported on iOS
218
+ */
219
+ outputEncoding?: "pcmFormatFloat32" | "pcmFormatFloat64" | "pcmFormatInt16" | "pcmFormatInt32";
220
+ };
221
+ export type AudioSourceOptions = {
222
+ /**
223
+ * Local audio source URI.
224
+ *
225
+ * e.g. `"file:///storage/emulated/0/Download/audio.wav"`
226
+ */
227
+ uri: string;
228
+ /**
229
+ * [Android only] The number of channels in the source audio.
230
+ *
231
+ * Default: 1
232
+ */
233
+ audioChannels?: number;
234
+ /**
235
+ * [Android only] A value from [AudioFormat](https://developer.android.com/reference/android/media/AudioFormat).
236
+ *
237
+ * Use the `AudioEncodingAndroid` enum to get the correct value.
238
+ */
239
+ audioEncoding?: AudioEncodingAndroidValue;
240
+ /**
241
+ * [Android only] Audio sampling rate in Hz.
242
+ *
243
+ * Default: 16000
244
+ */
245
+ sampleRate?: number;
246
+ /**
247
+ * [Android only] The delay for a 4KiB chunk of audio to stream to the speech recognition service.
248
+ *
249
+ * Use this setting to avoid being rate-limited when using network-based recognition.
250
+ *
251
+ * If you're using on-device recognition, you may want to increase this value to avoid unprocessed audio chunks.
252
+ *
253
+ * Default: 50ms for network-based recognition, 15ms for on-device recognition
254
+ */
255
+ chunkDelayMillis?: number;
256
+ };
257
+ export type AudioEncodingAndroidValue = (typeof AudioEncodingAndroid)[keyof typeof AudioEncodingAndroid];
258
+ export type AndroidIntentOptions = {
259
+ /**
260
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_CALLING_PACKAGE
261
+ *
262
+ * The extra key used in an intent to the speech recognizer for voice search. Not generally to be used by developers. The system search dialog uses this, for example, to set a calling package for identification by a voice search API. If this extra is set by anyone but the system process, it should be overridden by the voice search implementation.
263
+ */
264
+ EXTRA_CALLING_PACKAGE: string;
265
+ /**
266
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_ENABLE_BIASING_DEVICE_CONTEXT
267
+ *
268
+ * Optional boolean to enable biasing towards device context. The recognizer will use the device context to tune the recognition results.
269
+ *
270
+ * Depending on the recognizer implementation, this value may have no effect.
271
+ */
272
+ EXTRA_ENABLE_BIASING_DEVICE_CONTEXT: boolean;
273
+ /**
274
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_ENABLE_LANGUAGE_DETECTION
275
+ *
276
+ * Optional boolean indicating whether to enable language detection. When enabled, the recognizer will consistently identify the language of the current spoken utterance and provide that info via RecognitionListener#onLanguageDetection(Bundle).
277
+ */
278
+ EXTRA_ENABLE_LANGUAGE_DETECTION: boolean;
279
+ /**
280
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_ENABLE_LANGUAGE_SWITCH
281
+ *
282
+ * Optional string to enable automatic switching to the language being spoken with the desired sensitivity level, instead of being restricted to a single language. The corresponding language models must be downloaded to support the switch. Otherwise, the recognizer will report an error on a switch failure. The recognizer provides the switch results via RecognitionListener#onLanguageDetection(Bundle).
283
+ *
284
+ * Since detection is a necessary requirement for the language switching, setting this value implicitly enables EXTRA_ENABLE_LANGUAGE_DETECTION.
285
+ *
286
+ * Depending on the recognizer implementation, this value may have no effect.
287
+ */
288
+ EXTRA_ENABLE_LANGUAGE_SWITCH: (typeof RecognizerIntentEnableLanguageSwitch)[keyof typeof RecognizerIntentEnableLanguageSwitch];
289
+ /**
290
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_HIDE_PARTIAL_TRAILING_PUNCTUATION
291
+ *
292
+ * [API level 33] Optional boolean, to be used with EXTRA_ENABLE_FORMATTING, to prevent the recognizer adding punctuation after the last word of the partial results. The default is false.
293
+ */
294
+ EXTRA_HIDE_PARTIAL_TRAILING_PUNCTUATION: boolean;
295
+ /**
296
+ * Optional list of IETF language tags (as defined by BCP 47, e.g. "en-US", "de-DE").
297
+ *
298
+ * [API level 34] This extra is to be used with EXTRA_ENABLE_LANGUAGE_DETECTION. If set, the recognizer will constrain the language detection output to this list of languages, potentially improving detection accuracy.
299
+ */
300
+ EXTRA_LANGUAGE_DETECTION_ALLOWED_LANGUAGES: string[];
301
+ /**
302
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_LANGUAGE_MODEL
303
+ *
304
+ * [Default: free_form] The language model to use for speech recognition.
305
+ *
306
+ * Informs the recognizer which speech model to prefer when performing ACTION_RECOGNIZE_SPEECH.
307
+ * The recognizer uses this information to fine tune the results.
308
+ * This extra is required. Activities implementing ACTION_RECOGNIZE_SPEECH may interpret the values as they see fit.
309
+ */
310
+ EXTRA_LANGUAGE_MODEL: (typeof RecognizerIntentExtraLanguageModel)[keyof typeof RecognizerIntentExtraLanguageModel];
311
+ /**
312
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_LANGUAGE_SWITCH_ALLOWED_LANGUAGES
313
+ *
314
+ * [API level 34] Optional list of IETF language tags (as defined by BCP 47, e.g. "en-US", "de-DE").
315
+ * This extra is to be used with EXTRA_ENABLE_LANGUAGE_SWITCH. If set, the recognizer will apply the auto switch only to these languages, even if the speech models of other languages also exist.
316
+ * The corresponding language models must be downloaded to support the switch. Otherwise, the recognizer will report an error on a switch failure.
317
+ */
318
+ EXTRA_LANGUAGE_SWITCH_ALLOWED_LANGUAGES: string[];
319
+ /**
320
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_LANGUAGE_SWITCH_INITIAL_ACTIVE_DURATION_TIME_MILLIS
321
+ *
322
+ * [API level 35] Optional integer to use for EXTRA_ENABLE_LANGUAGE_SWITCH. If set, the language switch will only be activated for this value of ms of audio since the START_OF_SPEECH. This could provide a more stable recognition result when the language switch is only required in the beginning of the session.
323
+ */
324
+ EXTRA_LANGUAGE_SWITCH_INITIAL_ACTIVE_DURATION_TIME_MILLIS: number;
325
+ /**
326
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_LANGUAGE_SWITCH_MAX_SWITCHES
327
+ *
328
+ * [API level 35] Optional integer to use for EXTRA_ENABLE_LANGUAGE_SWITCH. If set, the language switch will be deactivated when LANGUAGE_SWITCH_MAX_SWITCHES reached.
329
+ *
330
+ * Depending on the recognizer implementation, this flag may have no effect.
331
+ */
332
+ EXTRA_LANGUAGE_SWITCH_MAX_SWITCHES: number;
333
+ /**
334
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_MASK_OFFENSIVE_WORDS
335
+ *
336
+ * [API level 33] Optional boolean indicating whether the recognizer should mask the offensive words in recognition results. The Default is true.
337
+ *
338
+ * Constant Value: "android.speech.extra.MASK_OFFENSIVE_WORDS"
339
+ */
340
+ EXTRA_MASK_OFFENSIVE_WORDS: boolean;
341
+ /**
342
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_ORIGIN
343
+ *
344
+ * Optional value which can be used to indicate the referer url of a page in which speech was requested. For example, a web browser may choose to provide this for uses of speech on a given page.
345
+ */
346
+ EXTRA_ORIGIN: string;
347
+ /**
348
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_PREFER_OFFLINE
349
+ *
350
+ * Optional boolean, to be used with ACTION_RECOGNIZE_SPEECH, ACTION_VOICE_SEARCH_HANDS_FREE, ACTION_WEB_SEARCH to indicate whether to only use an offline speech recognition engine. The default is false, meaning that either network or offline recognition engines may be used.
351
+ *
352
+ * Depending on the recognizer implementation, these values may have no effect.
353
+ */
354
+ EXTRA_PREFER_OFFLINE: boolean;
355
+ /**
356
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_PROMPT
357
+ *
358
+ * Optional text prompt to show to the user when asking them to speak.
359
+ */
360
+ EXTRA_PROMPT: string;
361
+ /**
362
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_REQUEST_WORD_CONFIDENCE
363
+ *
364
+ * [API level 34] Optional boolean indicating whether the recognizer should return the confidence level of each word in the final recognition results.
365
+ */
366
+ EXTRA_REQUEST_WORD_CONFIDENCE: boolean;
367
+ /**
368
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_REQUEST_WORD_TIMING
369
+ *
370
+ * [API level 34] Optional boolean indicating whether the recognizer should return the timestamp of each word in the final recognition results.
371
+ */
372
+ EXTRA_REQUEST_WORD_TIMING: boolean;
373
+ /**
374
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_SECURE
375
+ *
376
+ * Optional boolean to indicate that a "hands free" voice search was performed while the device was in a secure mode. An example of secure mode is when the device's screen lock is active, and it requires some form of authentication to be unlocked. When the device is securely locked, the voice search activity should either restrict the set of voice actions that are permitted, or require some form of secure authentication before proceeding.
377
+ */
378
+ EXTRA_SECURE: boolean;
379
+ /**
380
+ * Optional string to enable segmented session mode of the specified type,
381
+ * which can be `EXTRA_AUDIO_SOURCE`, `EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS` or `EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS`.
382
+ * When segmented session mode is supported by the recognizer implementation and this extra is set,
383
+ * it will return the recognition results in segments via [RecognitionListener#onSegmentResults(Bundle)](https://developer.android.com/reference/android/speech/RecognitionListener#onSegmentResults(android.os.Bundle))
384
+ * and terminate the session with [RecognitionListener#onEndOfSegmentedSession()](https://developer.android.com/reference/android/speech/RecognitionListener#onEndOfSegmentedSession()).
385
+ *
386
+ * When setting this extra, make sure the extra used as the string value here is also set in the same intent with proper value.
387
+ *
388
+ * Depending on the recognizer implementation, this value may have no effect.
389
+ */
390
+ EXTRA_SEGMENTED_SESSION: "android.speech.extra.AUDIO_SOURCE" | "android.speech.extras.SPEECH_INPUT_MINIMUM_LENGTH_MILLIS" | "android.speech.extras.SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS";
391
+ /**
392
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS
393
+ *
394
+ * The amount of time that it should take after the recognizer stops hearing speech to consider the input complete hence end the recognition session.
395
+ *
396
+ * Note that it is extremely rare you'd want to specify this value in an intent. Generally, it should be specified only when it is also used as the value for EXTRA_SEGMENTED_SESSION to enable segmented session mode. Note also that certain values may cause undesired or unexpected results - use judiciously!
397
+ *
398
+ * Depending on the recognizer implementation, these values may have no effect.
399
+ *
400
+ */
401
+ EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS: number;
402
+ /**
403
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS
404
+ *
405
+ * Optional integer to indicate the minimum length of the recognition session. The recognizer will not stop recognizing speech before this amount of time.
406
+ *
407
+ * Note that it is extremely rare you'd want to specify this value in an intent. Generally, it should be specified only when it is also used as the value for EXTRA_SEGMENTED_SESSION to enable segmented session mode. Note also that certain values may cause undesired or unexpected results - use judiciously!
408
+ *
409
+ * Depending on the recognizer implementation, these values may have no effect.
410
+ */
411
+ EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS: number;
412
+ /**
413
+ * https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS
414
+ *
415
+ * The amount of time that it should take after we stop hearing speech to consider the input possibly complete.
416
+ * This is used to prevent the endpointer cutting off during very short mid-speech pauses.
417
+ * Note that it is extremely rare you'd want to specify this value in an intent.
418
+ * If you don't have a very good reason to change these, you should leave them as they are.
419
+ * Note also that certain values may cause undesired or unexpected results - use judiciously!
420
+ * Additionally, depending on the recognizer implementation, these values may have no effect.
421
+ */
422
+ EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS: number;
423
+ };
424
+ export interface ExpoSpeechRecognitionModuleType extends NativeModule {
425
+ /**
426
+ * Starts speech recognition.
427
+ */
428
+ start(options: ExpoSpeechRecognitionOptions): void;
429
+ /**
430
+ * Stops speech recognition and attempts to return a final result (through the `result` event).
431
+ */
432
+ stop(): void;
433
+ /**
434
+ * Cancels speech recognition immediately without returning a final result.
435
+ */
436
+ abort(): void;
437
+ /**
438
+ * Presents a dialog to the user to request permissions for using speech recognition and the microphone.
439
+ *
440
+ * For iOS, once a user has granted (or denied) location permissions by responding to the original permission request dialog,
441
+ * the only way that the permissions can be changed is by the user themselves using the device settings app.
442
+ */
443
+ requestPermissionsAsync(): Promise<PermissionResponse>;
444
+ /**
445
+ * Returns the current permission status for the microphone and speech recognition.
446
+ */
447
+ getPermissionsAsync(): Promise<PermissionResponse>;
448
+ /**
449
+ * Returns an array of locales supported by the speech recognizer.
450
+ *
451
+ * @throws {"package_not_found"} If the service package is not found.
452
+ * @throws {"error_[number]"} If there was an error retrieving the supported locales.
453
+ */
454
+ getSupportedLocales(options: {
455
+ /**
456
+ * The package name of the speech recognition service to use.
457
+ *
458
+ * e.g. "com.google.android.as" or "com.samsung.android.bixby.agent"
459
+ *
460
+ * Warning: the service package (such as Bixby) may not be able to return any results.
461
+ */
462
+ androidRecognitionServicePackage?: string;
463
+ }): Promise<{
464
+ /**
465
+ * All supported languages on the device. This includes both installed and supported languages.
466
+ */
467
+ locales: string[];
468
+ /**
469
+ * These languages are installed on to the device for offline use.
470
+ *
471
+ * This will likely be an empty array if the service package is not "com.google.android.as"
472
+ */
473
+ installedLocales: string[];
474
+ }>;
475
+ /**
476
+ * [Android only] Returns an array of package names of speech recognition services that are available on the device.
477
+ *
478
+ * List of all available services as bundle identifiers, e.g. ["com.google.android.as", "com.google.android.tts"]
479
+ */
480
+ getSpeechRecognitionServices(): string[];
481
+ /**
482
+ * [Android only] Returns the default voice recognition service on the device.
483
+ *
484
+ * @returns empty string if no service is found, or not Android
485
+ */
486
+ getDefaultRecognitionService(): {
487
+ packageName: string;
488
+ };
489
+ /**
490
+ * [Android only] Returns the default voice recognition service on the device.
491
+ *
492
+ * e.g. "com.google.android.googlequicksearchbox" or "com.samsung.android.bixby.agent"
493
+ *
494
+ * @returns empty string if no service is found, or not Android
495
+ */
496
+ getAssistantService(): {
497
+ packageName: string;
498
+ };
499
+ /**
500
+ * Whether the on-device speech recognition is available on the device.
501
+ */
502
+ supportsOnDeviceRecognition(): boolean;
503
+ /**
504
+ * Whether the recording feature is available on the device.
505
+ *
506
+ * This mostly applies to Android devices, to check if it's greater than Android 13.
507
+ */
508
+ supportsRecording(): boolean;
509
+ /**
510
+ * Downloads the offline model for the specified locale.
511
+ * Note: this is only supported on Android 13 and above.
512
+ */
513
+ androidTriggerOfflineModelDownload(options: {
514
+ /** The locale to download the model for, e.g. "en-US" */
515
+ locale: string;
516
+ }): Promise<{
517
+ /**
518
+ * On Android 13, the status will be "opened_dialog" indicating that the model download dialog was opened.
519
+ * On Android 14+, the status will be "download_success" indicating that the model download was successful.
520
+ * On Android 14+, "download_canceled" will be returned if the download was canceled by a user interaction.
521
+ */
522
+ status: "download_success" | "opened_dialog" | "download_canceled";
523
+ message: string;
524
+ }>;
525
+ /**
526
+ * [iOS only] For advanced use cases, you may use this function to set the audio session category and mode.
527
+ *
528
+ * See: https://developer.apple.com/documentation/avfaudio/avaudiosession/1771734-setcategory
529
+ */
530
+ setCategoryIOS(options: SetCategoryOptions): void;
531
+ /**
532
+ * [iOS only] Returns the current audio session category and options.
533
+ *
534
+ * See:
535
+ * - [AVAudioSession.Category](https://developer.apple.com/documentation/avfaudio/avaudiosession/category)
536
+ * - [AVAudioSession.CategoryOptions](https://developer.apple.com/documentation/avfaudio/avaudiosession/categoryoptions)
537
+ * - [AVAudioSession.Mode](https://developer.apple.com/documentation/avfaudio/avaudiosession/mode)
538
+ */
539
+ getAudioSessionCategoryAndOptionsIOS(): {
540
+ category: AVAudioSessionCategoryValue;
541
+ categoryOptions: AVAudioSessionCategoryOptionsValue[];
542
+ mode: AVAudioSessionModeValue;
543
+ };
544
+ /**
545
+ * [iOS only] Sets the shared audio session active state.
546
+ *
547
+ * Calls the following on iOS: `AVAudioSession.sharedInstance().setActive(value, options)`
548
+ *
549
+ * See: https://developer.apple.com/documentation/avfaudio/avaudiosession/1616627-setactive
550
+ */
551
+ setAudioSessionActiveIOS(value: boolean, options?: {
552
+ /** [Default: true] Whether to notify other audio sessions when the active state changes. */
553
+ notifyOthersOnDeactivation: boolean;
554
+ }): void;
555
+ /**
556
+ * Returns the current state of the speech recognizer.
557
+ */
558
+ getStateAsync(): Promise<SpeechRecognitionState>;
559
+ }
560
+ export type SetCategoryOptions = {
561
+ category: AVAudioSessionCategoryValue;
562
+ categoryOptions: AVAudioSessionCategoryOptionsValue[];
563
+ mode?: AVAudioSessionModeValue;
564
+ };
565
+ type SpeechRecognitionState = "inactive" | "starting" | "recognizing" | "stopping";
566
+ /**
567
+ * [iOS only] See: [AVAudioSession.CategoryOptions](https://developer.apple.com/documentation/avfaudio/avaudiosession/categoryoptions)
568
+ *
569
+ * Use the `AVAudioSessionCategoryOptions` enum to get the correct value.
570
+ */
571
+ export type AVAudioSessionCategoryOptionsValue = (typeof AVAudioSessionCategoryOptions)[keyof typeof AVAudioSessionCategoryOptions];
572
+ /**
573
+ * [iOS only] See: [AVAudioSession.Mode](https://developer.apple.com/documentation/avfaudio/avaudiosession/mode)
574
+ *
575
+ * Use the `AVAudioSessionMode` enum to get the correct value.
576
+ */
577
+ export type AVAudioSessionModeValue = (typeof AVAudioSessionMode)[keyof typeof AVAudioSessionMode];
578
+ export {};
579
+ //# sourceMappingURL=ExpoSpeechRecognitionModule.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoSpeechRecognitionModule.types.d.ts","sourceRoot":"","sources":["../src/ExpoSpeechRecognitionModule.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,6BAA6B,EAC7B,kBAAkB,EAClB,oCAAoC,EACpC,kCAAkC,EAClC,WAAW,EACZ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