react-native-wakeword-sid 1.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KeyWordRNBridge.podspec +58 -0
- package/LICENSE +21 -0
- package/README.md +281 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +48 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar +0 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.md5 +1 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.sha1 +1 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.pom +10 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.pom.md5 +1 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.pom.sha1 +1 -0
- package/android/settings.gradle +2 -0
- package/android/src/main/AndroidManifest.xml +13 -0
- package/android/src/main/assets/hey_lookdeep.dm +0 -0
- package/android/src/main/assets/layer1.dm +0 -0
- package/android/src/main/assets/need_help_now.dm +0 -0
- package/android/src/main/java/com/davoice/DaVoiceUnifiedPackage.java +29 -0
- package/android/src/main/java/com/davoice/keywordspotting/KeyWordRNBridge.java +335 -0
- package/android/src/main/java/com/davoice/speakeridrn/SpeakerIdRNBridge.java_not_used_yet +588 -0
- package/android/src/main/libs/MyLibrary-release.aar +0 -0
- package/app.plugin.js +60 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/Info.plist +44 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +386 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection.h +18 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Info.plist +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +5758 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/module.modulemap +11 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +768 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection.h +18 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Info.plist +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +5758 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +5758 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/module.modulemap +11 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +297 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/KeyWordRNBridge/KeyWordRNBridge.h +19 -0
- package/ios/KeyWordRNBridge/KeyWordRNBridge.m +642 -0
- package/ios/KeyWordRNBridge/KeyWordRNBridge.mm +416 -0
- package/ios/KeyWordRNBridge/models/coca_cola_model_28_05052025.onnx +0 -0
- package/ios/KeyWordRNBridge/models/embedding_model.onnx +0 -0
- package/ios/KeyWordRNBridge/models/hey_lookdeep.onnx +0 -0
- package/ios/KeyWordRNBridge/models/melspectrogram.onnx +0 -0
- package/ios/KeyWordRNBridge/models/need_help_now.onnx +0 -0
- package/ios/KeyWordRNBridge/models/silero_vad.onnx +0 -0
- package/package.json +74 -0
- package/react-native.config.js +10 -0
- package/wakewords/KeyWordRNBridge.d.ts +38 -0
- package/wakewords/KeyWordRNBridge.js +228 -0
- package/wakewords/SpeakerVerificationRNBridge.d.ts +32 -0
- package/wakewords/SpeakerVerificationRNBridge.js +124 -0
- package/wakewords/audioRoutingConfig.d.ts +17 -0
- package/wakewords/audioRoutingConfig.ts +28 -0
- package/wakewords/index.d.ts +16 -0
- package/wakewords/index.js +34 -0
- package/wakewords/useModel.d.ts +19 -0
- package/wakewords/useModel.tsx +235 -0
|
@@ -0,0 +1,768 @@
|
|
|
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 NSString;
|
|
309
|
+
SWIFT_CLASS("_TtC16KeyWordDetection29AudioSessionAndDuckingManager")
|
|
310
|
+
@interface AudioSessionAndDuckingManager : NSObject
|
|
311
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AudioSessionAndDuckingManager * _Nonnull shared;)
|
|
312
|
+
+ (AudioSessionAndDuckingManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
313
|
+
- (NSString * _Nullable)getWakewordAudioRoutingConfigJSONString SWIFT_WARN_UNUSED_RESULT;
|
|
314
|
+
- (void)setWakewordAudioRoutingConfigFromJSONString:(NSString * _Nonnull)jsonConfig;
|
|
315
|
+
- (void)initAudioSessAndDuckManage SWIFT_METHOD_FAMILY(none);
|
|
316
|
+
- (void)enableRadioInCar;
|
|
317
|
+
- (void)enableAggressiveDucking;
|
|
318
|
+
- (void)disableDucking;
|
|
319
|
+
- (void)restartListeningAfterDucking;
|
|
320
|
+
/// Example function to end ducking. Deactivates session and stops engine.
|
|
321
|
+
- (void)disableDuckingAndCleanup;
|
|
322
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
323
|
+
@end
|
|
324
|
+
|
|
325
|
+
@class KeyWordsDetection;
|
|
326
|
+
SWIFT_CLASS("_TtC16KeyWordDetection15GlobalVariables")
|
|
327
|
+
@interface GlobalVariables : NSObject
|
|
328
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariables * _Nonnull shared;)
|
|
329
|
+
+ (GlobalVariables * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
330
|
+
@property (nonatomic, strong) KeyWordsDetection * _Nullable keyWordsDetectionInstance;
|
|
331
|
+
@property (nonatomic, copy) NSString * _Nullable modelName;
|
|
332
|
+
@property (nonatomic) float threshold;
|
|
333
|
+
@property (nonatomic) NSInteger bufferCnt;
|
|
334
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
335
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
336
|
+
@end
|
|
337
|
+
|
|
338
|
+
@protocol KeywordDetectionRNDelegate;
|
|
339
|
+
@class NSNumber;
|
|
340
|
+
SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
|
|
341
|
+
@interface KeyWordsDetection : NSObject
|
|
342
|
+
@property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
|
|
343
|
+
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
344
|
+
- (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;
|
|
345
|
+
- (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;
|
|
346
|
+
- (BOOL)replaceKeywordDetectionModelWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
347
|
+
- (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;
|
|
348
|
+
- (NSString * _Nonnull)getKeywordDetectionModel SWIFT_WARN_UNUSED_RESULT;
|
|
349
|
+
- (NSString * _Nonnull)getRecordingWav SWIFT_WARN_UNUSED_RESULT;
|
|
350
|
+
- (BOOL)setKeywordDetectionLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
351
|
+
- (BOOL)setLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
352
|
+
- (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
|
|
353
|
+
- (BOOL)startListeningWithNoExternalActivation:(BOOL)noExternalActivation duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
|
|
354
|
+
- (void)stopListening;
|
|
355
|
+
- (NSDictionary<NSString *, id> * _Nonnull)getVoiceProps SWIFT_WARN_UNUSED_RESULT;
|
|
356
|
+
- (BOOL)startSilentListening SWIFT_WARN_UNUSED_RESULT;
|
|
357
|
+
- (BOOL)startVADListening SWIFT_WARN_UNUSED_RESULT;
|
|
358
|
+
- (BOOL)setVADParamsWithThreshold:(float)threshold msWindow:(NSInteger)msWindow error:(NSError * _Nullable * _Nullable)error;
|
|
359
|
+
- (void)stopSilentListening;
|
|
360
|
+
- (void)stopVADListening;
|
|
361
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
362
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
363
|
+
@end
|
|
364
|
+
|
|
365
|
+
SWIFT_PROTOCOL("_TtP16KeyWordDetection26KeywordDetectionRNDelegate_")
|
|
366
|
+
@protocol KeywordDetectionRNDelegate
|
|
367
|
+
- (void)KeywordDetectionDidDetectEvent:(NSDictionary<NSString *, id> * _Nonnull)eventInfo;
|
|
368
|
+
@end
|
|
369
|
+
|
|
370
|
+
SWIFT_CLASS("_TtC16KeyWordDetection14LicenseManager")
|
|
371
|
+
@interface LicenseManager : NSObject
|
|
372
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
373
|
+
@end
|
|
374
|
+
|
|
375
|
+
#endif
|
|
376
|
+
#if __has_attribute(external_source_symbol)
|
|
377
|
+
# pragma clang attribute pop
|
|
378
|
+
#endif
|
|
379
|
+
#if defined(__cplusplus)
|
|
380
|
+
#endif
|
|
381
|
+
#pragma clang diagnostic pop
|
|
382
|
+
#endif
|
|
383
|
+
|
|
384
|
+
#elif defined(__x86_64__) && __x86_64__
|
|
385
|
+
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
|
386
|
+
#ifndef KEYWORDDETECTION_SWIFT_H
|
|
387
|
+
#define KEYWORDDETECTION_SWIFT_H
|
|
388
|
+
#pragma clang diagnostic push
|
|
389
|
+
#pragma clang diagnostic ignored "-Wgcc-compat"
|
|
390
|
+
|
|
391
|
+
#if !defined(__has_include)
|
|
392
|
+
# define __has_include(x) 0
|
|
393
|
+
#endif
|
|
394
|
+
#if !defined(__has_attribute)
|
|
395
|
+
# define __has_attribute(x) 0
|
|
396
|
+
#endif
|
|
397
|
+
#if !defined(__has_feature)
|
|
398
|
+
# define __has_feature(x) 0
|
|
399
|
+
#endif
|
|
400
|
+
#if !defined(__has_warning)
|
|
401
|
+
# define __has_warning(x) 0
|
|
402
|
+
#endif
|
|
403
|
+
|
|
404
|
+
#if __has_include(<swift/objc-prologue.h>)
|
|
405
|
+
# include <swift/objc-prologue.h>
|
|
406
|
+
#endif
|
|
407
|
+
|
|
408
|
+
#pragma clang diagnostic ignored "-Wauto-import"
|
|
409
|
+
#if defined(__OBJC__)
|
|
410
|
+
#include <Foundation/Foundation.h>
|
|
411
|
+
#endif
|
|
412
|
+
#if defined(__cplusplus)
|
|
413
|
+
#include <cstdint>
|
|
414
|
+
#include <cstddef>
|
|
415
|
+
#include <cstdbool>
|
|
416
|
+
#include <cstring>
|
|
417
|
+
#include <stdlib.h>
|
|
418
|
+
#include <new>
|
|
419
|
+
#include <type_traits>
|
|
420
|
+
#else
|
|
421
|
+
#include <stdint.h>
|
|
422
|
+
#include <stddef.h>
|
|
423
|
+
#include <stdbool.h>
|
|
424
|
+
#include <string.h>
|
|
425
|
+
#endif
|
|
426
|
+
#if defined(__cplusplus)
|
|
427
|
+
#pragma clang diagnostic push
|
|
428
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
429
|
+
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
430
|
+
# include <ptrauth.h>
|
|
431
|
+
#else
|
|
432
|
+
#pragma clang diagnostic push
|
|
433
|
+
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
|
434
|
+
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
435
|
+
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
436
|
+
# endif
|
|
437
|
+
# ifndef __ptrauth_swift_class_method_pointer
|
|
438
|
+
# define __ptrauth_swift_class_method_pointer(x)
|
|
439
|
+
# endif
|
|
440
|
+
#pragma clang diagnostic pop
|
|
441
|
+
#endif
|
|
442
|
+
#pragma clang diagnostic pop
|
|
443
|
+
#endif
|
|
444
|
+
|
|
445
|
+
#if !defined(SWIFT_TYPEDEFS)
|
|
446
|
+
# define SWIFT_TYPEDEFS 1
|
|
447
|
+
# if __has_include(<uchar.h>)
|
|
448
|
+
# include <uchar.h>
|
|
449
|
+
# elif !defined(__cplusplus)
|
|
450
|
+
typedef unsigned char char8_t;
|
|
451
|
+
typedef uint_least16_t char16_t;
|
|
452
|
+
typedef uint_least32_t char32_t;
|
|
453
|
+
# endif
|
|
454
|
+
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
|
455
|
+
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
|
456
|
+
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
|
457
|
+
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
|
458
|
+
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
|
459
|
+
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
|
460
|
+
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
|
461
|
+
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
|
462
|
+
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
|
463
|
+
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
|
464
|
+
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
|
465
|
+
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
466
|
+
#endif
|
|
467
|
+
|
|
468
|
+
#if !defined(SWIFT_PASTE)
|
|
469
|
+
# define SWIFT_PASTE_HELPER(x, y) x##y
|
|
470
|
+
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
|
471
|
+
#endif
|
|
472
|
+
#if !defined(SWIFT_METATYPE)
|
|
473
|
+
# define SWIFT_METATYPE(X) Class
|
|
474
|
+
#endif
|
|
475
|
+
#if !defined(SWIFT_CLASS_PROPERTY)
|
|
476
|
+
# if __has_feature(objc_class_property)
|
|
477
|
+
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
478
|
+
# else
|
|
479
|
+
# define SWIFT_CLASS_PROPERTY(...)
|
|
480
|
+
# endif
|
|
481
|
+
#endif
|
|
482
|
+
#if !defined(SWIFT_RUNTIME_NAME)
|
|
483
|
+
# if __has_attribute(objc_runtime_name)
|
|
484
|
+
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
485
|
+
# else
|
|
486
|
+
# define SWIFT_RUNTIME_NAME(X)
|
|
487
|
+
# endif
|
|
488
|
+
#endif
|
|
489
|
+
#if !defined(SWIFT_COMPILE_NAME)
|
|
490
|
+
# if __has_attribute(swift_name)
|
|
491
|
+
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
492
|
+
# else
|
|
493
|
+
# define SWIFT_COMPILE_NAME(X)
|
|
494
|
+
# endif
|
|
495
|
+
#endif
|
|
496
|
+
#if !defined(SWIFT_METHOD_FAMILY)
|
|
497
|
+
# if __has_attribute(objc_method_family)
|
|
498
|
+
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
499
|
+
# else
|
|
500
|
+
# define SWIFT_METHOD_FAMILY(X)
|
|
501
|
+
# endif
|
|
502
|
+
#endif
|
|
503
|
+
#if !defined(SWIFT_NOESCAPE)
|
|
504
|
+
# if __has_attribute(noescape)
|
|
505
|
+
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
506
|
+
# else
|
|
507
|
+
# define SWIFT_NOESCAPE
|
|
508
|
+
# endif
|
|
509
|
+
#endif
|
|
510
|
+
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
|
511
|
+
# if __has_attribute(ns_consumed)
|
|
512
|
+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
513
|
+
# else
|
|
514
|
+
# define SWIFT_RELEASES_ARGUMENT
|
|
515
|
+
# endif
|
|
516
|
+
#endif
|
|
517
|
+
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
|
518
|
+
# if __has_attribute(warn_unused_result)
|
|
519
|
+
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
520
|
+
# else
|
|
521
|
+
# define SWIFT_WARN_UNUSED_RESULT
|
|
522
|
+
# endif
|
|
523
|
+
#endif
|
|
524
|
+
#if !defined(SWIFT_NORETURN)
|
|
525
|
+
# if __has_attribute(noreturn)
|
|
526
|
+
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
527
|
+
# else
|
|
528
|
+
# define SWIFT_NORETURN
|
|
529
|
+
# endif
|
|
530
|
+
#endif
|
|
531
|
+
#if !defined(SWIFT_CLASS_EXTRA)
|
|
532
|
+
# define SWIFT_CLASS_EXTRA
|
|
533
|
+
#endif
|
|
534
|
+
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
535
|
+
# define SWIFT_PROTOCOL_EXTRA
|
|
536
|
+
#endif
|
|
537
|
+
#if !defined(SWIFT_ENUM_EXTRA)
|
|
538
|
+
# define SWIFT_ENUM_EXTRA
|
|
539
|
+
#endif
|
|
540
|
+
#if !defined(SWIFT_CLASS)
|
|
541
|
+
# if __has_attribute(objc_subclassing_restricted)
|
|
542
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
|
543
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
544
|
+
# else
|
|
545
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
546
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
547
|
+
# endif
|
|
548
|
+
#endif
|
|
549
|
+
#if !defined(SWIFT_RESILIENT_CLASS)
|
|
550
|
+
# if __has_attribute(objc_class_stub)
|
|
551
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
|
552
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
553
|
+
# else
|
|
554
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
|
555
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
556
|
+
# endif
|
|
557
|
+
#endif
|
|
558
|
+
#if !defined(SWIFT_PROTOCOL)
|
|
559
|
+
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
560
|
+
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
561
|
+
#endif
|
|
562
|
+
#if !defined(SWIFT_EXTENSION)
|
|
563
|
+
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
564
|
+
#endif
|
|
565
|
+
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
566
|
+
# if __has_attribute(objc_designated_initializer)
|
|
567
|
+
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
568
|
+
# else
|
|
569
|
+
# define OBJC_DESIGNATED_INITIALIZER
|
|
570
|
+
# endif
|
|
571
|
+
#endif
|
|
572
|
+
#if !defined(SWIFT_ENUM_ATTR)
|
|
573
|
+
# if __has_attribute(enum_extensibility)
|
|
574
|
+
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
575
|
+
# else
|
|
576
|
+
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
577
|
+
# endif
|
|
578
|
+
#endif
|
|
579
|
+
#if !defined(SWIFT_ENUM)
|
|
580
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
581
|
+
# if __has_feature(generalized_swift_name)
|
|
582
|
+
# 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
|
|
583
|
+
# else
|
|
584
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
585
|
+
# endif
|
|
586
|
+
#endif
|
|
587
|
+
#if !defined(SWIFT_UNAVAILABLE)
|
|
588
|
+
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
589
|
+
#endif
|
|
590
|
+
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
|
591
|
+
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
|
592
|
+
#endif
|
|
593
|
+
#if !defined(SWIFT_AVAILABILITY)
|
|
594
|
+
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
595
|
+
#endif
|
|
596
|
+
#if !defined(SWIFT_WEAK_IMPORT)
|
|
597
|
+
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
598
|
+
#endif
|
|
599
|
+
#if !defined(SWIFT_DEPRECATED)
|
|
600
|
+
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
|
601
|
+
#endif
|
|
602
|
+
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
603
|
+
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
604
|
+
#endif
|
|
605
|
+
#if !defined(SWIFT_DEPRECATED_OBJC)
|
|
606
|
+
# if __has_feature(attribute_diagnose_if_objc)
|
|
607
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
|
608
|
+
# else
|
|
609
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
610
|
+
# endif
|
|
611
|
+
#endif
|
|
612
|
+
#if defined(__OBJC__)
|
|
613
|
+
#if !defined(IBSegueAction)
|
|
614
|
+
# define IBSegueAction
|
|
615
|
+
#endif
|
|
616
|
+
#endif
|
|
617
|
+
#if !defined(SWIFT_EXTERN)
|
|
618
|
+
# if defined(__cplusplus)
|
|
619
|
+
# define SWIFT_EXTERN extern "C"
|
|
620
|
+
# else
|
|
621
|
+
# define SWIFT_EXTERN extern
|
|
622
|
+
# endif
|
|
623
|
+
#endif
|
|
624
|
+
#if !defined(SWIFT_CALL)
|
|
625
|
+
# define SWIFT_CALL __attribute__((swiftcall))
|
|
626
|
+
#endif
|
|
627
|
+
#if !defined(SWIFT_INDIRECT_RESULT)
|
|
628
|
+
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
|
629
|
+
#endif
|
|
630
|
+
#if !defined(SWIFT_CONTEXT)
|
|
631
|
+
# define SWIFT_CONTEXT __attribute__((swift_context))
|
|
632
|
+
#endif
|
|
633
|
+
#if !defined(SWIFT_ERROR_RESULT)
|
|
634
|
+
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
|
635
|
+
#endif
|
|
636
|
+
#if defined(__cplusplus)
|
|
637
|
+
# define SWIFT_NOEXCEPT noexcept
|
|
638
|
+
#else
|
|
639
|
+
# define SWIFT_NOEXCEPT
|
|
640
|
+
#endif
|
|
641
|
+
#if !defined(SWIFT_C_INLINE_THUNK)
|
|
642
|
+
# if __has_attribute(always_inline)
|
|
643
|
+
# if __has_attribute(nodebug)
|
|
644
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
|
645
|
+
# else
|
|
646
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
|
647
|
+
# endif
|
|
648
|
+
# else
|
|
649
|
+
# define SWIFT_C_INLINE_THUNK inline
|
|
650
|
+
# endif
|
|
651
|
+
#endif
|
|
652
|
+
#if defined(_WIN32)
|
|
653
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
654
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
655
|
+
#endif
|
|
656
|
+
#else
|
|
657
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
658
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
659
|
+
#endif
|
|
660
|
+
#endif
|
|
661
|
+
#if defined(__OBJC__)
|
|
662
|
+
#if __has_feature(objc_modules)
|
|
663
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
664
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
665
|
+
#endif
|
|
666
|
+
@import Foundation;
|
|
667
|
+
@import ObjectiveC;
|
|
668
|
+
#endif
|
|
669
|
+
|
|
670
|
+
#endif
|
|
671
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
672
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
673
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
674
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
675
|
+
#endif
|
|
676
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
677
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
678
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
679
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
680
|
+
|
|
681
|
+
#if __has_attribute(external_source_symbol)
|
|
682
|
+
# pragma push_macro("any")
|
|
683
|
+
# undef any
|
|
684
|
+
# 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))
|
|
685
|
+
# pragma pop_macro("any")
|
|
686
|
+
#endif
|
|
687
|
+
|
|
688
|
+
#if defined(__OBJC__)
|
|
689
|
+
|
|
690
|
+
@class NSString;
|
|
691
|
+
SWIFT_CLASS("_TtC16KeyWordDetection29AudioSessionAndDuckingManager")
|
|
692
|
+
@interface AudioSessionAndDuckingManager : NSObject
|
|
693
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AudioSessionAndDuckingManager * _Nonnull shared;)
|
|
694
|
+
+ (AudioSessionAndDuckingManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
695
|
+
- (NSString * _Nullable)getWakewordAudioRoutingConfigJSONString SWIFT_WARN_UNUSED_RESULT;
|
|
696
|
+
- (void)setWakewordAudioRoutingConfigFromJSONString:(NSString * _Nonnull)jsonConfig;
|
|
697
|
+
- (void)initAudioSessAndDuckManage SWIFT_METHOD_FAMILY(none);
|
|
698
|
+
- (void)enableRadioInCar;
|
|
699
|
+
- (void)enableAggressiveDucking;
|
|
700
|
+
- (void)disableDucking;
|
|
701
|
+
- (void)restartListeningAfterDucking;
|
|
702
|
+
/// Example function to end ducking. Deactivates session and stops engine.
|
|
703
|
+
- (void)disableDuckingAndCleanup;
|
|
704
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
705
|
+
@end
|
|
706
|
+
|
|
707
|
+
@class KeyWordsDetection;
|
|
708
|
+
SWIFT_CLASS("_TtC16KeyWordDetection15GlobalVariables")
|
|
709
|
+
@interface GlobalVariables : NSObject
|
|
710
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariables * _Nonnull shared;)
|
|
711
|
+
+ (GlobalVariables * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
712
|
+
@property (nonatomic, strong) KeyWordsDetection * _Nullable keyWordsDetectionInstance;
|
|
713
|
+
@property (nonatomic, copy) NSString * _Nullable modelName;
|
|
714
|
+
@property (nonatomic) float threshold;
|
|
715
|
+
@property (nonatomic) NSInteger bufferCnt;
|
|
716
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
717
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
718
|
+
@end
|
|
719
|
+
|
|
720
|
+
@protocol KeywordDetectionRNDelegate;
|
|
721
|
+
@class NSNumber;
|
|
722
|
+
SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
|
|
723
|
+
@interface KeyWordsDetection : NSObject
|
|
724
|
+
@property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
|
|
725
|
+
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
726
|
+
- (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;
|
|
727
|
+
- (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;
|
|
728
|
+
- (BOOL)replaceKeywordDetectionModelWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
729
|
+
- (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;
|
|
730
|
+
- (NSString * _Nonnull)getKeywordDetectionModel SWIFT_WARN_UNUSED_RESULT;
|
|
731
|
+
- (NSString * _Nonnull)getRecordingWav SWIFT_WARN_UNUSED_RESULT;
|
|
732
|
+
- (BOOL)setKeywordDetectionLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
733
|
+
- (BOOL)setLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
734
|
+
- (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
|
|
735
|
+
- (BOOL)startListeningWithNoExternalActivation:(BOOL)noExternalActivation duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
|
|
736
|
+
- (void)stopListening;
|
|
737
|
+
- (NSDictionary<NSString *, id> * _Nonnull)getVoiceProps SWIFT_WARN_UNUSED_RESULT;
|
|
738
|
+
- (BOOL)startSilentListening SWIFT_WARN_UNUSED_RESULT;
|
|
739
|
+
- (BOOL)startVADListening SWIFT_WARN_UNUSED_RESULT;
|
|
740
|
+
- (BOOL)setVADParamsWithThreshold:(float)threshold msWindow:(NSInteger)msWindow error:(NSError * _Nullable * _Nullable)error;
|
|
741
|
+
- (void)stopSilentListening;
|
|
742
|
+
- (void)stopVADListening;
|
|
743
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
744
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
745
|
+
@end
|
|
746
|
+
|
|
747
|
+
SWIFT_PROTOCOL("_TtP16KeyWordDetection26KeywordDetectionRNDelegate_")
|
|
748
|
+
@protocol KeywordDetectionRNDelegate
|
|
749
|
+
- (void)KeywordDetectionDidDetectEvent:(NSDictionary<NSString *, id> * _Nonnull)eventInfo;
|
|
750
|
+
@end
|
|
751
|
+
|
|
752
|
+
SWIFT_CLASS("_TtC16KeyWordDetection14LicenseManager")
|
|
753
|
+
@interface LicenseManager : NSObject
|
|
754
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
755
|
+
@end
|
|
756
|
+
|
|
757
|
+
#endif
|
|
758
|
+
#if __has_attribute(external_source_symbol)
|
|
759
|
+
# pragma clang attribute pop
|
|
760
|
+
#endif
|
|
761
|
+
#if defined(__cplusplus)
|
|
762
|
+
#endif
|
|
763
|
+
#pragma clang diagnostic pop
|
|
764
|
+
#endif
|
|
765
|
+
|
|
766
|
+
#else
|
|
767
|
+
#error unsupported Swift architecture
|
|
768
|
+
#endif
|