react-native-wakeword 1.1.2 → 1.1.4
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/ios/KeyWordDetection.xcframework/Info.plist +5 -5
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +10 -4
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +10 -4
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +10 -4
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +16 -16
- package/ios/KeyWordRNBridge.mm +6 -0
- package/package.json +1 -1
- package/wakewords/KeyWordRNBridge.d.ts +1 -0
- package/wakewords/KeyWordRNBridge.js +5 -1
- package/wakewords/index.d.ts +5 -1
- package/wakewords/index.js +8 -0
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>KeyWordDetection.framework/KeyWordDetection</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>KeyWordDetection.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
17
18
|
</array>
|
|
18
19
|
<key>SupportedPlatform</key>
|
|
19
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
20
23
|
</dict>
|
|
21
24
|
<dict>
|
|
22
25
|
<key>BinaryPath</key>
|
|
23
26
|
<string>KeyWordDetection.framework/KeyWordDetection</string>
|
|
24
27
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
26
29
|
<key>LibraryPath</key>
|
|
27
30
|
<string>KeyWordDetection.framework</string>
|
|
28
31
|
<key>SupportedArchitectures</key>
|
|
29
32
|
<array>
|
|
30
33
|
<string>arm64</string>
|
|
31
|
-
<string>x86_64</string>
|
|
32
34
|
</array>
|
|
33
35
|
<key>SupportedPlatform</key>
|
|
34
36
|
<string>ios</string>
|
|
35
|
-
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -3100,8 +3100,7 @@
|
|
|
3100
3100
|
"moduleName": "KeyWordDetection",
|
|
3101
3101
|
"declAttributes": [
|
|
3102
3102
|
"AccessControl",
|
|
3103
|
-
"ObjC"
|
|
3104
|
-
"RawDocComment"
|
|
3103
|
+
"ObjC"
|
|
3105
3104
|
],
|
|
3106
3105
|
"funcSelfKind": "NonMutating"
|
|
3107
3106
|
},
|
|
@@ -4117,14 +4116,21 @@
|
|
|
4117
4116
|
{
|
|
4118
4117
|
"filePath": "\/Users\/oferfryman\/projects\/KeywordDetectionIOSLibPrivate\/Sources\/AudioSessionAndDuckingManager.swift",
|
|
4119
4118
|
"kind": "BooleanLiteral",
|
|
4120
|
-
"offset":
|
|
4119
|
+
"offset": 249,
|
|
4120
|
+
"length": 5,
|
|
4121
|
+
"value": "false"
|
|
4122
|
+
},
|
|
4123
|
+
{
|
|
4124
|
+
"filePath": "\/Users\/oferfryman\/projects\/KeywordDetectionIOSLibPrivate\/Sources\/AudioSessionAndDuckingManager.swift",
|
|
4125
|
+
"kind": "BooleanLiteral",
|
|
4126
|
+
"offset": 348,
|
|
4121
4127
|
"length": 5,
|
|
4122
4128
|
"value": "false"
|
|
4123
4129
|
},
|
|
4124
4130
|
{
|
|
4125
4131
|
"filePath": "\/Users\/oferfryman\/projects\/KeywordDetectionIOSLibPrivate\/Sources\/AudioSessionAndDuckingManager.swift",
|
|
4126
4132
|
"kind": "BooleanLiteral",
|
|
4127
|
-
"offset":
|
|
4133
|
+
"offset": 772,
|
|
4128
4134
|
"length": 5,
|
|
4129
4135
|
"value": "false"
|
|
4130
4136
|
},
|
|
Binary file
|
|
Binary file
|
|
@@ -6357,8 +6357,7 @@
|
|
|
6357
6357
|
"isOpen": true,
|
|
6358
6358
|
"declAttributes": [
|
|
6359
6359
|
"AccessControl",
|
|
6360
|
-
"ObjC"
|
|
6361
|
-
"RawDocComment"
|
|
6360
|
+
"ObjC"
|
|
6362
6361
|
],
|
|
6363
6362
|
"funcSelfKind": "NonMutating"
|
|
6364
6363
|
},
|
|
@@ -7793,14 +7792,21 @@
|
|
|
7793
7792
|
{
|
|
7794
7793
|
"filePath": "\/Users\/oferfryman\/projects\/KeywordDetectionIOSLibPrivate\/Sources\/AudioSessionAndDuckingManager.swift",
|
|
7795
7794
|
"kind": "BooleanLiteral",
|
|
7796
|
-
"offset":
|
|
7795
|
+
"offset": 249,
|
|
7796
|
+
"length": 5,
|
|
7797
|
+
"value": "false"
|
|
7798
|
+
},
|
|
7799
|
+
{
|
|
7800
|
+
"filePath": "\/Users\/oferfryman\/projects\/KeywordDetectionIOSLibPrivate\/Sources\/AudioSessionAndDuckingManager.swift",
|
|
7801
|
+
"kind": "BooleanLiteral",
|
|
7802
|
+
"offset": 348,
|
|
7797
7803
|
"length": 5,
|
|
7798
7804
|
"value": "false"
|
|
7799
7805
|
},
|
|
7800
7806
|
{
|
|
7801
7807
|
"filePath": "\/Users\/oferfryman\/projects\/KeywordDetectionIOSLibPrivate\/Sources\/AudioSessionAndDuckingManager.swift",
|
|
7802
7808
|
"kind": "BooleanLiteral",
|
|
7803
|
-
"offset":
|
|
7809
|
+
"offset": 772,
|
|
7804
7810
|
"length": 5,
|
|
7805
7811
|
"value": "false"
|
|
7806
7812
|
},
|
|
Binary file
|
|
@@ -6357,8 +6357,7 @@
|
|
|
6357
6357
|
"isOpen": true,
|
|
6358
6358
|
"declAttributes": [
|
|
6359
6359
|
"AccessControl",
|
|
6360
|
-
"ObjC"
|
|
6361
|
-
"RawDocComment"
|
|
6360
|
+
"ObjC"
|
|
6362
6361
|
],
|
|
6363
6362
|
"funcSelfKind": "NonMutating"
|
|
6364
6363
|
},
|
|
@@ -7793,14 +7792,21 @@
|
|
|
7793
7792
|
{
|
|
7794
7793
|
"filePath": "\/Users\/oferfryman\/projects\/KeywordDetectionIOSLibPrivate\/Sources\/AudioSessionAndDuckingManager.swift",
|
|
7795
7794
|
"kind": "BooleanLiteral",
|
|
7796
|
-
"offset":
|
|
7795
|
+
"offset": 249,
|
|
7796
|
+
"length": 5,
|
|
7797
|
+
"value": "false"
|
|
7798
|
+
},
|
|
7799
|
+
{
|
|
7800
|
+
"filePath": "\/Users\/oferfryman\/projects\/KeywordDetectionIOSLibPrivate\/Sources\/AudioSessionAndDuckingManager.swift",
|
|
7801
|
+
"kind": "BooleanLiteral",
|
|
7802
|
+
"offset": 348,
|
|
7797
7803
|
"length": 5,
|
|
7798
7804
|
"value": "false"
|
|
7799
7805
|
},
|
|
7800
7806
|
{
|
|
7801
7807
|
"filePath": "\/Users\/oferfryman\/projects\/KeywordDetectionIOSLibPrivate\/Sources\/AudioSessionAndDuckingManager.swift",
|
|
7802
7808
|
"kind": "BooleanLiteral",
|
|
7803
|
-
"offset":
|
|
7809
|
+
"offset": 772,
|
|
7804
7810
|
"length": 5,
|
|
7805
7811
|
"value": "false"
|
|
7806
7812
|
},
|
|
Binary file
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
XyzL3kG4Qh13+G4WNayrnGq2qYg=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
K1WUY1MSbSMsbfmpfSdaKT14bvk=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
R5VNv58s73HVdqQs9ILKxoIrJkc=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
32
32
|
<data>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
OOk2E8mPDoJmxDQBgi8WYPtBKGg=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
40
40
|
<data>
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
</data>
|
|
43
43
|
<key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
44
44
|
<data>
|
|
45
|
-
|
|
45
|
+
upE/SX4A0giDK7vaV5XomOQSx/U=
|
|
46
46
|
</data>
|
|
47
47
|
<key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
48
48
|
<data>
|
|
49
|
-
|
|
49
|
+
R5VNv58s73HVdqQs9ILKxoIrJkc=
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
52
52
|
<data>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
56
56
|
<data>
|
|
57
|
-
|
|
57
|
+
Rf00B/Xbc3JxIYe2pM3bsY+39f8=
|
|
58
58
|
</data>
|
|
59
59
|
<key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
60
60
|
<data>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
</data>
|
|
63
63
|
<key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
64
64
|
<data>
|
|
65
|
-
|
|
65
|
+
t4oRyY1LiOhwbASdZNJG9+rmycw=
|
|
66
66
|
</data>
|
|
67
67
|
<key>Modules/module.modulemap</key>
|
|
68
68
|
<data>
|
|
@@ -89,21 +89,21 @@
|
|
|
89
89
|
<dict>
|
|
90
90
|
<key>hash2</key>
|
|
91
91
|
<data>
|
|
92
|
-
|
|
92
|
+
fu1w807DzYLURymfwJsK3jXT5u3h9IxjWSjOKDALU/0=
|
|
93
93
|
</data>
|
|
94
94
|
</dict>
|
|
95
95
|
<key>Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
96
96
|
<dict>
|
|
97
97
|
<key>hash2</key>
|
|
98
98
|
<data>
|
|
99
|
-
|
|
99
|
+
uwe22DE1nsGfBCQefRNHoKGXJDdPRWbmlNnWnFFx5qM=
|
|
100
100
|
</data>
|
|
101
101
|
</dict>
|
|
102
102
|
<key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
103
103
|
<dict>
|
|
104
104
|
<key>hash2</key>
|
|
105
105
|
<data>
|
|
106
|
-
|
|
106
|
+
LRG1CmN45MSLeDAMh2vhcA3ZqzSBhYY71ADPdGWUARE=
|
|
107
107
|
</data>
|
|
108
108
|
</dict>
|
|
109
109
|
<key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
<dict>
|
|
118
118
|
<key>hash2</key>
|
|
119
119
|
<data>
|
|
120
|
-
|
|
120
|
+
5609GT0+aJQq8DxqN896ueMz+6mXxFzERti+dsswY6o=
|
|
121
121
|
</data>
|
|
122
122
|
</dict>
|
|
123
123
|
<key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
@@ -131,14 +131,14 @@
|
|
|
131
131
|
<dict>
|
|
132
132
|
<key>hash2</key>
|
|
133
133
|
<data>
|
|
134
|
-
|
|
134
|
+
/VeX2zvrCdbZylMN57B+fxqExu48PRY3PfwDu5RH8Js=
|
|
135
135
|
</data>
|
|
136
136
|
</dict>
|
|
137
137
|
<key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
138
138
|
<dict>
|
|
139
139
|
<key>hash2</key>
|
|
140
140
|
<data>
|
|
141
|
-
|
|
141
|
+
LRG1CmN45MSLeDAMh2vhcA3ZqzSBhYY71ADPdGWUARE=
|
|
142
142
|
</data>
|
|
143
143
|
</dict>
|
|
144
144
|
<key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
<dict>
|
|
153
153
|
<key>hash2</key>
|
|
154
154
|
<data>
|
|
155
|
-
|
|
155
|
+
a9CC6mbNREYQgxOsBHsz6LrEWFvc/hZSykm2MIhcQFY=
|
|
156
156
|
</data>
|
|
157
157
|
</dict>
|
|
158
158
|
<key>Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
<dict>
|
|
167
167
|
<key>hash2</key>
|
|
168
168
|
<data>
|
|
169
|
-
|
|
169
|
+
J9WDhASMp1aYVUXxPwhs7oBKSe6gHTkexHEyJIn/oDk=
|
|
170
170
|
</data>
|
|
171
171
|
</dict>
|
|
172
172
|
<key>Modules/module.modulemap</key>
|
package/ios/KeyWordRNBridge.mm
CHANGED
|
@@ -102,6 +102,12 @@ RCT_EXPORT_METHOD(disableDucking:(RCTPromiseResolveBlock)resolve rejecter:(RCTPr
|
|
|
102
102
|
resolve(@"enabled");
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
RCT_EXPORT_METHOD(initAudioSessAndDuckManage:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
106
|
+
{
|
|
107
|
+
[AudioSessionAndDuckingManager.shared initAudioSessAndDuckManage];
|
|
108
|
+
resolve(@"enabled");
|
|
109
|
+
}
|
|
110
|
+
|
|
105
111
|
RCT_EXPORT_METHOD(restartListeningAfterDucking:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
106
112
|
{
|
|
107
113
|
[AudioSessionAndDuckingManager.shared restartListeningAfterDucking];
|
package/package.json
CHANGED
|
@@ -19,4 +19,5 @@ export function createKeyWordRNBridgeInstance(instanceId: any, isSticky: any): P
|
|
|
19
19
|
export function enableDucking(): Promise<void>;
|
|
20
20
|
export function disableDucking(): Promise<void>;
|
|
21
21
|
export function restartListeningAfterDucking(): Promise<void>;
|
|
22
|
+
export function initAudioSessAndDuckManage(): Promise<void>;
|
|
22
23
|
export function disableDuckingAndCleanup(): Promise<void>;
|
|
@@ -100,7 +100,11 @@ export const restartListeningAfterDucking = async () => {
|
|
|
100
100
|
await KeyWordRNBridge.restartListeningAfterDucking();
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
export const initAudioSessAndDuckManage = async () => {
|
|
104
|
+
await KeyWordRNBridge.initAudioSessAndDuckManage
|
|
105
|
+
}
|
|
106
|
+
|
|
103
107
|
export const disableDuckingAndCleanup = async () => {
|
|
104
|
-
KeyWordRNBridge.disableDuckingAndCleanup();
|
|
108
|
+
await KeyWordRNBridge.disableDuckingAndCleanup();
|
|
105
109
|
}
|
|
106
110
|
|
package/wakewords/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export default useModel;
|
|
2
|
+
import { enableDucking } from "./KeyWordRNBridge";
|
|
3
|
+
import { disableDucking } from "./KeyWordRNBridge";
|
|
4
|
+
import { initAudioSessAndDuckManage } from "./KeyWordRNBridge";
|
|
5
|
+
import { restartListeningAfterDucking } from "./KeyWordRNBridge";
|
|
2
6
|
import { removeAllRNBridgeListeners } from "./KeyWordRNBridge";
|
|
3
7
|
import { createKeyWordRNBridgeInstance } from "./KeyWordRNBridge";
|
|
4
8
|
import { KeyWordRNBridgeInstance } from "./KeyWordRNBridge";
|
|
5
9
|
import useModel from "./useModel";
|
|
6
|
-
export { removeAllRNBridgeListeners, createKeyWordRNBridgeInstance, KeyWordRNBridgeInstance, useModel };
|
|
10
|
+
export { enableDucking, disableDucking, initAudioSessAndDuckManage, restartListeningAfterDucking, removeAllRNBridgeListeners, createKeyWordRNBridgeInstance, KeyWordRNBridgeInstance, useModel };
|
package/wakewords/index.js
CHANGED
|
@@ -3,9 +3,17 @@ import {
|
|
|
3
3
|
createKeyWordRNBridgeInstance,
|
|
4
4
|
removeAllRNBridgeListeners,
|
|
5
5
|
KeyWordRNBridgeInstance,
|
|
6
|
+
enableDucking,
|
|
7
|
+
disableDucking,
|
|
8
|
+
initAudioSessAndDuckManage,
|
|
9
|
+
restartListeningAfterDucking,
|
|
6
10
|
} from './KeyWordRNBridge';
|
|
7
11
|
|
|
8
12
|
|
|
13
|
+
export { enableDucking }
|
|
14
|
+
export { disableDucking }
|
|
15
|
+
export { initAudioSessAndDuckManage }
|
|
16
|
+
export { restartListeningAfterDucking }
|
|
9
17
|
export { removeAllRNBridgeListeners }
|
|
10
18
|
export { createKeyWordRNBridgeInstance }
|
|
11
19
|
export { KeyWordRNBridgeInstance }
|