react-native-wakeword-sid 1.1.70

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