react-native-wakeword 1.0.23 → 1.0.25

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 (40) hide show
  1. package/KeyWordDetection.podspec +34 -0
  2. package/README.md +3 -0
  3. package/ios/KeyWordDetection.xcframework/Info.plist +44 -0
  4. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +358 -0
  5. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection.h +18 -0
  6. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Info.plist +0 -0
  7. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
  8. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  9. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +1586 -0
  10. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +43 -0
  11. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  12. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +43 -0
  13. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/module.modulemap +11 -0
  14. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +712 -0
  15. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection.h +18 -0
  16. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Info.plist +0 -0
  17. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
  18. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  19. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  20. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +1586 -0
  21. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +43 -0
  22. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  23. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +43 -0
  24. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +1586 -0
  25. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +43 -0
  26. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  27. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +43 -0
  28. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/module.modulemap +11 -0
  29. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +267 -0
  30. package/ios/KeyWordRNBridge.h +18 -0
  31. package/ios/KeyWordRNBridge.mm +197 -0
  32. package/ios/KeyWordRNBridgeSwift.h +5 -0
  33. package/ios/KeyWordRNBridgeSwift.mm +5 -0
  34. package/ios/models/embedding_model.onnx +0 -0
  35. package/ios/models/melspectrogram.onnx +0 -0
  36. package/ios/models/need_help_now.onnx +0 -0
  37. package/ios/react-native-wakeword.podspec +40 -0
  38. package/module.modulemap +8 -0
  39. package/package.json +5 -2
  40. package/react-native.config.js +3 -0
@@ -0,0 +1,712 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
4
+ #ifndef KEYWORDDETECTION_SWIFT_H
5
+ #define KEYWORDDETECTION_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wauto-import"
27
+ #if defined(__OBJC__)
28
+ #include <Foundation/Foundation.h>
29
+ #endif
30
+ #if defined(__cplusplus)
31
+ #include <cstdint>
32
+ #include <cstddef>
33
+ #include <cstdbool>
34
+ #include <cstring>
35
+ #include <stdlib.h>
36
+ #include <new>
37
+ #include <type_traits>
38
+ #else
39
+ #include <stdint.h>
40
+ #include <stddef.h>
41
+ #include <stdbool.h>
42
+ #include <string.h>
43
+ #endif
44
+ #if defined(__cplusplus)
45
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
46
+ # include <ptrauth.h>
47
+ #else
48
+ #pragma clang diagnostic push
49
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
50
+ # ifndef __ptrauth_swift_value_witness_function_pointer
51
+ # define __ptrauth_swift_value_witness_function_pointer(x)
52
+ # endif
53
+ # ifndef __ptrauth_swift_class_method_pointer
54
+ # define __ptrauth_swift_class_method_pointer(x)
55
+ # endif
56
+ #pragma clang diagnostic pop
57
+ #endif
58
+ #endif
59
+
60
+ #if !defined(SWIFT_TYPEDEFS)
61
+ # define SWIFT_TYPEDEFS 1
62
+ # if __has_include(<uchar.h>)
63
+ # include <uchar.h>
64
+ # elif !defined(__cplusplus)
65
+ typedef uint_least16_t char16_t;
66
+ typedef uint_least32_t char32_t;
67
+ # endif
68
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
69
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
70
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
71
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
72
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
73
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
74
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
75
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
76
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
77
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
78
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
79
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
80
+ #endif
81
+
82
+ #if !defined(SWIFT_PASTE)
83
+ # define SWIFT_PASTE_HELPER(x, y) x##y
84
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
85
+ #endif
86
+ #if !defined(SWIFT_METATYPE)
87
+ # define SWIFT_METATYPE(X) Class
88
+ #endif
89
+ #if !defined(SWIFT_CLASS_PROPERTY)
90
+ # if __has_feature(objc_class_property)
91
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
92
+ # else
93
+ # define SWIFT_CLASS_PROPERTY(...)
94
+ # endif
95
+ #endif
96
+ #if !defined(SWIFT_RUNTIME_NAME)
97
+ # if __has_attribute(objc_runtime_name)
98
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
99
+ # else
100
+ # define SWIFT_RUNTIME_NAME(X)
101
+ # endif
102
+ #endif
103
+ #if !defined(SWIFT_COMPILE_NAME)
104
+ # if __has_attribute(swift_name)
105
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
106
+ # else
107
+ # define SWIFT_COMPILE_NAME(X)
108
+ # endif
109
+ #endif
110
+ #if !defined(SWIFT_METHOD_FAMILY)
111
+ # if __has_attribute(objc_method_family)
112
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
113
+ # else
114
+ # define SWIFT_METHOD_FAMILY(X)
115
+ # endif
116
+ #endif
117
+ #if !defined(SWIFT_NOESCAPE)
118
+ # if __has_attribute(noescape)
119
+ # define SWIFT_NOESCAPE __attribute__((noescape))
120
+ # else
121
+ # define SWIFT_NOESCAPE
122
+ # endif
123
+ #endif
124
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
125
+ # if __has_attribute(ns_consumed)
126
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
127
+ # else
128
+ # define SWIFT_RELEASES_ARGUMENT
129
+ # endif
130
+ #endif
131
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
132
+ # if __has_attribute(warn_unused_result)
133
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
134
+ # else
135
+ # define SWIFT_WARN_UNUSED_RESULT
136
+ # endif
137
+ #endif
138
+ #if !defined(SWIFT_NORETURN)
139
+ # if __has_attribute(noreturn)
140
+ # define SWIFT_NORETURN __attribute__((noreturn))
141
+ # else
142
+ # define SWIFT_NORETURN
143
+ # endif
144
+ #endif
145
+ #if !defined(SWIFT_CLASS_EXTRA)
146
+ # define SWIFT_CLASS_EXTRA
147
+ #endif
148
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
149
+ # define SWIFT_PROTOCOL_EXTRA
150
+ #endif
151
+ #if !defined(SWIFT_ENUM_EXTRA)
152
+ # define SWIFT_ENUM_EXTRA
153
+ #endif
154
+ #if !defined(SWIFT_CLASS)
155
+ # if __has_attribute(objc_subclassing_restricted)
156
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
157
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
158
+ # else
159
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
160
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
161
+ # endif
162
+ #endif
163
+ #if !defined(SWIFT_RESILIENT_CLASS)
164
+ # if __has_attribute(objc_class_stub)
165
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
166
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
167
+ # else
168
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
169
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
170
+ # endif
171
+ #endif
172
+ #if !defined(SWIFT_PROTOCOL)
173
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
174
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
175
+ #endif
176
+ #if !defined(SWIFT_EXTENSION)
177
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
178
+ #endif
179
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
180
+ # if __has_attribute(objc_designated_initializer)
181
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
182
+ # else
183
+ # define OBJC_DESIGNATED_INITIALIZER
184
+ # endif
185
+ #endif
186
+ #if !defined(SWIFT_ENUM_ATTR)
187
+ # if __has_attribute(enum_extensibility)
188
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
189
+ # else
190
+ # define SWIFT_ENUM_ATTR(_extensibility)
191
+ # endif
192
+ #endif
193
+ #if !defined(SWIFT_ENUM)
194
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
195
+ # if __has_feature(generalized_swift_name)
196
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
197
+ # else
198
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
199
+ # endif
200
+ #endif
201
+ #if !defined(SWIFT_UNAVAILABLE)
202
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
203
+ #endif
204
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
205
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
206
+ #endif
207
+ #if !defined(SWIFT_AVAILABILITY)
208
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
209
+ #endif
210
+ #if !defined(SWIFT_WEAK_IMPORT)
211
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
212
+ #endif
213
+ #if !defined(SWIFT_DEPRECATED)
214
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
215
+ #endif
216
+ #if !defined(SWIFT_DEPRECATED_MSG)
217
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
218
+ #endif
219
+ #if !defined(SWIFT_DEPRECATED_OBJC)
220
+ # if __has_feature(attribute_diagnose_if_objc)
221
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
222
+ # else
223
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
224
+ # endif
225
+ #endif
226
+ #if defined(__OBJC__)
227
+ #if !defined(IBSegueAction)
228
+ # define IBSegueAction
229
+ #endif
230
+ #endif
231
+ #if !defined(SWIFT_EXTERN)
232
+ # if defined(__cplusplus)
233
+ # define SWIFT_EXTERN extern "C"
234
+ # else
235
+ # define SWIFT_EXTERN extern
236
+ # endif
237
+ #endif
238
+ #if !defined(SWIFT_CALL)
239
+ # define SWIFT_CALL __attribute__((swiftcall))
240
+ #endif
241
+ #if !defined(SWIFT_INDIRECT_RESULT)
242
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
243
+ #endif
244
+ #if !defined(SWIFT_CONTEXT)
245
+ # define SWIFT_CONTEXT __attribute__((swift_context))
246
+ #endif
247
+ #if !defined(SWIFT_ERROR_RESULT)
248
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
249
+ #endif
250
+ #if defined(__cplusplus)
251
+ # define SWIFT_NOEXCEPT noexcept
252
+ #else
253
+ # define SWIFT_NOEXCEPT
254
+ #endif
255
+ #if !defined(SWIFT_C_INLINE_THUNK)
256
+ # if __has_attribute(always_inline)
257
+ # if __has_attribute(nodebug)
258
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
259
+ # else
260
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
261
+ # endif
262
+ # else
263
+ # define SWIFT_C_INLINE_THUNK inline
264
+ # endif
265
+ #endif
266
+ #if defined(_WIN32)
267
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
268
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
269
+ #endif
270
+ #else
271
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
272
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
273
+ #endif
274
+ #endif
275
+ #if defined(__OBJC__)
276
+ #if __has_feature(objc_modules)
277
+ #if __has_warning("-Watimport-in-framework-header")
278
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
279
+ #endif
280
+ @import Foundation;
281
+ @import ObjectiveC;
282
+ #endif
283
+
284
+ #endif
285
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
286
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
287
+ #if __has_warning("-Wpragma-clang-attribute")
288
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
289
+ #endif
290
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
291
+ #pragma clang diagnostic ignored "-Wnullability"
292
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
293
+
294
+ #if __has_attribute(external_source_symbol)
295
+ # pragma push_macro("any")
296
+ # undef any
297
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="KeyWordDetection",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
298
+ # pragma pop_macro("any")
299
+ #endif
300
+
301
+ #if defined(__OBJC__)
302
+ @class KeyWordsDetection;
303
+ @class NSString;
304
+
305
+ SWIFT_CLASS("_TtC16KeyWordDetection15GlobalVariables")
306
+ @interface GlobalVariables : NSObject
307
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariables * _Nonnull shared;)
308
+ + (GlobalVariables * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
309
+ @property (nonatomic, strong) KeyWordsDetection * _Nullable keyWordsDetectionInstance;
310
+ @property (nonatomic, copy) NSString * _Nullable modelName;
311
+ @property (nonatomic) float threshold;
312
+ @property (nonatomic) NSInteger bufferCnt;
313
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
314
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
315
+ @end
316
+
317
+ @protocol KeywordDetectionRNDelegate;
318
+
319
+ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
320
+ @interface KeyWordsDetection : NSObject
321
+ @property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
322
+ - (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
323
+ - (BOOL)replaceKeywordDetectionModelWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
324
+ - (NSString * _Nonnull)getKeywordDetectionModel SWIFT_WARN_UNUSED_RESULT;
325
+ - (NSString * _Nonnull)getRecordingWav SWIFT_WARN_UNUSED_RESULT;
326
+ - (BOOL)setKeywordDetectionLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
327
+ - (BOOL)setLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
328
+ - (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
329
+ - (BOOL)startListeningAndReturnError:(NSError * _Nullable * _Nullable)error;
330
+ - (void)stopListening;
331
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
332
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
333
+ @end
334
+
335
+
336
+ SWIFT_PROTOCOL("_TtP16KeyWordDetection26KeywordDetectionRNDelegate_")
337
+ @protocol KeywordDetectionRNDelegate
338
+ - (void)KeywordDetectionDidDetectEvent:(NSDictionary<NSString *, id> * _Nonnull)eventInfo;
339
+ @end
340
+
341
+
342
+ SWIFT_CLASS("_TtC16KeyWordDetection14LicenseManager")
343
+ @interface LicenseManager : NSObject
344
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
345
+ @end
346
+
347
+ #endif
348
+ #if __has_attribute(external_source_symbol)
349
+ # pragma clang attribute pop
350
+ #endif
351
+ #if defined(__cplusplus)
352
+ #endif
353
+ #pragma clang diagnostic pop
354
+ #endif
355
+
356
+ #elif defined(__x86_64__) && __x86_64__
357
+ // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
358
+ #ifndef KEYWORDDETECTION_SWIFT_H
359
+ #define KEYWORDDETECTION_SWIFT_H
360
+ #pragma clang diagnostic push
361
+ #pragma clang diagnostic ignored "-Wgcc-compat"
362
+
363
+ #if !defined(__has_include)
364
+ # define __has_include(x) 0
365
+ #endif
366
+ #if !defined(__has_attribute)
367
+ # define __has_attribute(x) 0
368
+ #endif
369
+ #if !defined(__has_feature)
370
+ # define __has_feature(x) 0
371
+ #endif
372
+ #if !defined(__has_warning)
373
+ # define __has_warning(x) 0
374
+ #endif
375
+
376
+ #if __has_include(<swift/objc-prologue.h>)
377
+ # include <swift/objc-prologue.h>
378
+ #endif
379
+
380
+ #pragma clang diagnostic ignored "-Wauto-import"
381
+ #if defined(__OBJC__)
382
+ #include <Foundation/Foundation.h>
383
+ #endif
384
+ #if defined(__cplusplus)
385
+ #include <cstdint>
386
+ #include <cstddef>
387
+ #include <cstdbool>
388
+ #include <cstring>
389
+ #include <stdlib.h>
390
+ #include <new>
391
+ #include <type_traits>
392
+ #else
393
+ #include <stdint.h>
394
+ #include <stddef.h>
395
+ #include <stdbool.h>
396
+ #include <string.h>
397
+ #endif
398
+ #if defined(__cplusplus)
399
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
400
+ # include <ptrauth.h>
401
+ #else
402
+ #pragma clang diagnostic push
403
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
404
+ # ifndef __ptrauth_swift_value_witness_function_pointer
405
+ # define __ptrauth_swift_value_witness_function_pointer(x)
406
+ # endif
407
+ # ifndef __ptrauth_swift_class_method_pointer
408
+ # define __ptrauth_swift_class_method_pointer(x)
409
+ # endif
410
+ #pragma clang diagnostic pop
411
+ #endif
412
+ #endif
413
+
414
+ #if !defined(SWIFT_TYPEDEFS)
415
+ # define SWIFT_TYPEDEFS 1
416
+ # if __has_include(<uchar.h>)
417
+ # include <uchar.h>
418
+ # elif !defined(__cplusplus)
419
+ typedef uint_least16_t char16_t;
420
+ typedef uint_least32_t char32_t;
421
+ # endif
422
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
423
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
424
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
425
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
426
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
427
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
428
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
429
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
430
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
431
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
432
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
433
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
434
+ #endif
435
+
436
+ #if !defined(SWIFT_PASTE)
437
+ # define SWIFT_PASTE_HELPER(x, y) x##y
438
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
439
+ #endif
440
+ #if !defined(SWIFT_METATYPE)
441
+ # define SWIFT_METATYPE(X) Class
442
+ #endif
443
+ #if !defined(SWIFT_CLASS_PROPERTY)
444
+ # if __has_feature(objc_class_property)
445
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
446
+ # else
447
+ # define SWIFT_CLASS_PROPERTY(...)
448
+ # endif
449
+ #endif
450
+ #if !defined(SWIFT_RUNTIME_NAME)
451
+ # if __has_attribute(objc_runtime_name)
452
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
453
+ # else
454
+ # define SWIFT_RUNTIME_NAME(X)
455
+ # endif
456
+ #endif
457
+ #if !defined(SWIFT_COMPILE_NAME)
458
+ # if __has_attribute(swift_name)
459
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
460
+ # else
461
+ # define SWIFT_COMPILE_NAME(X)
462
+ # endif
463
+ #endif
464
+ #if !defined(SWIFT_METHOD_FAMILY)
465
+ # if __has_attribute(objc_method_family)
466
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
467
+ # else
468
+ # define SWIFT_METHOD_FAMILY(X)
469
+ # endif
470
+ #endif
471
+ #if !defined(SWIFT_NOESCAPE)
472
+ # if __has_attribute(noescape)
473
+ # define SWIFT_NOESCAPE __attribute__((noescape))
474
+ # else
475
+ # define SWIFT_NOESCAPE
476
+ # endif
477
+ #endif
478
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
479
+ # if __has_attribute(ns_consumed)
480
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
481
+ # else
482
+ # define SWIFT_RELEASES_ARGUMENT
483
+ # endif
484
+ #endif
485
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
486
+ # if __has_attribute(warn_unused_result)
487
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
488
+ # else
489
+ # define SWIFT_WARN_UNUSED_RESULT
490
+ # endif
491
+ #endif
492
+ #if !defined(SWIFT_NORETURN)
493
+ # if __has_attribute(noreturn)
494
+ # define SWIFT_NORETURN __attribute__((noreturn))
495
+ # else
496
+ # define SWIFT_NORETURN
497
+ # endif
498
+ #endif
499
+ #if !defined(SWIFT_CLASS_EXTRA)
500
+ # define SWIFT_CLASS_EXTRA
501
+ #endif
502
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
503
+ # define SWIFT_PROTOCOL_EXTRA
504
+ #endif
505
+ #if !defined(SWIFT_ENUM_EXTRA)
506
+ # define SWIFT_ENUM_EXTRA
507
+ #endif
508
+ #if !defined(SWIFT_CLASS)
509
+ # if __has_attribute(objc_subclassing_restricted)
510
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
511
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
512
+ # else
513
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
514
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
515
+ # endif
516
+ #endif
517
+ #if !defined(SWIFT_RESILIENT_CLASS)
518
+ # if __has_attribute(objc_class_stub)
519
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
520
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
521
+ # else
522
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
523
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
524
+ # endif
525
+ #endif
526
+ #if !defined(SWIFT_PROTOCOL)
527
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
528
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
529
+ #endif
530
+ #if !defined(SWIFT_EXTENSION)
531
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
532
+ #endif
533
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
534
+ # if __has_attribute(objc_designated_initializer)
535
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
536
+ # else
537
+ # define OBJC_DESIGNATED_INITIALIZER
538
+ # endif
539
+ #endif
540
+ #if !defined(SWIFT_ENUM_ATTR)
541
+ # if __has_attribute(enum_extensibility)
542
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
543
+ # else
544
+ # define SWIFT_ENUM_ATTR(_extensibility)
545
+ # endif
546
+ #endif
547
+ #if !defined(SWIFT_ENUM)
548
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
549
+ # if __has_feature(generalized_swift_name)
550
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
551
+ # else
552
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
553
+ # endif
554
+ #endif
555
+ #if !defined(SWIFT_UNAVAILABLE)
556
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
557
+ #endif
558
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
559
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
560
+ #endif
561
+ #if !defined(SWIFT_AVAILABILITY)
562
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
563
+ #endif
564
+ #if !defined(SWIFT_WEAK_IMPORT)
565
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
566
+ #endif
567
+ #if !defined(SWIFT_DEPRECATED)
568
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
569
+ #endif
570
+ #if !defined(SWIFT_DEPRECATED_MSG)
571
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
572
+ #endif
573
+ #if !defined(SWIFT_DEPRECATED_OBJC)
574
+ # if __has_feature(attribute_diagnose_if_objc)
575
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
576
+ # else
577
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
578
+ # endif
579
+ #endif
580
+ #if defined(__OBJC__)
581
+ #if !defined(IBSegueAction)
582
+ # define IBSegueAction
583
+ #endif
584
+ #endif
585
+ #if !defined(SWIFT_EXTERN)
586
+ # if defined(__cplusplus)
587
+ # define SWIFT_EXTERN extern "C"
588
+ # else
589
+ # define SWIFT_EXTERN extern
590
+ # endif
591
+ #endif
592
+ #if !defined(SWIFT_CALL)
593
+ # define SWIFT_CALL __attribute__((swiftcall))
594
+ #endif
595
+ #if !defined(SWIFT_INDIRECT_RESULT)
596
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
597
+ #endif
598
+ #if !defined(SWIFT_CONTEXT)
599
+ # define SWIFT_CONTEXT __attribute__((swift_context))
600
+ #endif
601
+ #if !defined(SWIFT_ERROR_RESULT)
602
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
603
+ #endif
604
+ #if defined(__cplusplus)
605
+ # define SWIFT_NOEXCEPT noexcept
606
+ #else
607
+ # define SWIFT_NOEXCEPT
608
+ #endif
609
+ #if !defined(SWIFT_C_INLINE_THUNK)
610
+ # if __has_attribute(always_inline)
611
+ # if __has_attribute(nodebug)
612
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
613
+ # else
614
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
615
+ # endif
616
+ # else
617
+ # define SWIFT_C_INLINE_THUNK inline
618
+ # endif
619
+ #endif
620
+ #if defined(_WIN32)
621
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
622
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
623
+ #endif
624
+ #else
625
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
626
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
627
+ #endif
628
+ #endif
629
+ #if defined(__OBJC__)
630
+ #if __has_feature(objc_modules)
631
+ #if __has_warning("-Watimport-in-framework-header")
632
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
633
+ #endif
634
+ @import Foundation;
635
+ @import ObjectiveC;
636
+ #endif
637
+
638
+ #endif
639
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
640
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
641
+ #if __has_warning("-Wpragma-clang-attribute")
642
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
643
+ #endif
644
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
645
+ #pragma clang diagnostic ignored "-Wnullability"
646
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
647
+
648
+ #if __has_attribute(external_source_symbol)
649
+ # pragma push_macro("any")
650
+ # undef any
651
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="KeyWordDetection",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
652
+ # pragma pop_macro("any")
653
+ #endif
654
+
655
+ #if defined(__OBJC__)
656
+ @class KeyWordsDetection;
657
+ @class NSString;
658
+
659
+ SWIFT_CLASS("_TtC16KeyWordDetection15GlobalVariables")
660
+ @interface GlobalVariables : NSObject
661
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariables * _Nonnull shared;)
662
+ + (GlobalVariables * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
663
+ @property (nonatomic, strong) KeyWordsDetection * _Nullable keyWordsDetectionInstance;
664
+ @property (nonatomic, copy) NSString * _Nullable modelName;
665
+ @property (nonatomic) float threshold;
666
+ @property (nonatomic) NSInteger bufferCnt;
667
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
668
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
669
+ @end
670
+
671
+ @protocol KeywordDetectionRNDelegate;
672
+
673
+ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
674
+ @interface KeyWordsDetection : NSObject
675
+ @property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
676
+ - (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
677
+ - (BOOL)replaceKeywordDetectionModelWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
678
+ - (NSString * _Nonnull)getKeywordDetectionModel SWIFT_WARN_UNUSED_RESULT;
679
+ - (NSString * _Nonnull)getRecordingWav SWIFT_WARN_UNUSED_RESULT;
680
+ - (BOOL)setKeywordDetectionLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
681
+ - (BOOL)setLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
682
+ - (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
683
+ - (BOOL)startListeningAndReturnError:(NSError * _Nullable * _Nullable)error;
684
+ - (void)stopListening;
685
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
686
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
687
+ @end
688
+
689
+
690
+ SWIFT_PROTOCOL("_TtP16KeyWordDetection26KeywordDetectionRNDelegate_")
691
+ @protocol KeywordDetectionRNDelegate
692
+ - (void)KeywordDetectionDidDetectEvent:(NSDictionary<NSString *, id> * _Nonnull)eventInfo;
693
+ @end
694
+
695
+
696
+ SWIFT_CLASS("_TtC16KeyWordDetection14LicenseManager")
697
+ @interface LicenseManager : NSObject
698
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
699
+ @end
700
+
701
+ #endif
702
+ #if __has_attribute(external_source_symbol)
703
+ # pragma clang attribute pop
704
+ #endif
705
+ #if defined(__cplusplus)
706
+ #endif
707
+ #pragma clang diagnostic pop
708
+ #endif
709
+
710
+ #else
711
+ #error unsupported Swift architecture
712
+ #endif