react-native-wakeword 1.1.5 → 1.1.6

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.
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>KeyWordDetection.framework/KeyWordDetection</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_x86_64-simulator</string>
11
+ <string>ios-arm64</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>
18
17
  </array>
19
18
  <key>SupportedPlatform</key>
20
19
  <string>ios</string>
21
- <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
23
20
  </dict>
24
21
  <dict>
25
22
  <key>BinaryPath</key>
26
23
  <string>KeyWordDetection.framework/KeyWordDetection</string>
27
24
  <key>LibraryIdentifier</key>
28
- <string>ios-arm64</string>
25
+ <string>ios-arm64_x86_64-simulator</string>
29
26
  <key>LibraryPath</key>
30
27
  <string>KeyWordDetection.framework</string>
31
28
  <key>SupportedArchitectures</key>
32
29
  <array>
33
30
  <string>arm64</string>
31
+ <string>x86_64</string>
34
32
  </array>
35
33
  <key>SupportedPlatform</key>
36
34
  <string>ios</string>
35
+ <key>SupportedPlatformVariant</key>
36
+ <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
@@ -18,11 +18,11 @@
18
18
  </data>
19
19
  <key>Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
20
20
  <data>
21
- teFL+ONRAySqijZZa4LlB4aHB9E=
21
+ Yeo7JrYTf7xdo8vzQXOLYe0TuPU=
22
22
  </data>
23
23
  <key>Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
24
24
  <data>
25
- vJpl/uG0pmEGCxXfgI351BFk6Cw=
25
+ HnrzTcb3KYBjQ0kjipA22LUjKQU=
26
26
  </data>
27
27
  <key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
28
28
  <data>
@@ -89,14 +89,14 @@
89
89
  <dict>
90
90
  <key>hash2</key>
91
91
  <data>
92
- sOkb/yIjxkIzIZDief33GYJ9n2Vlc+eOc0ETj6kt9Ro=
92
+ Ao4E7yAPxIizbksWH5CQyRi2GtdcCGhgs5a0dt8FQ9M=
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
- /UxnusADtueFIfXOx69dcEABxwjQ+waaH0Xnbu46nzc=
99
+ XDctd7aXKgmWH0Z7aqPivub4p5L0ryTVwzM4NXFDQ7U=
100
100
  </data>
101
101
  </dict>
102
102
  <key>Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
@@ -1,3 +1,4 @@
1
+ //ios/KeyWordRNBridge.h
1
2
  #import <React/RCTBridgeModule.h>
2
3
  #import <React/RCTEventEmitter.h>
3
4
  //#import "porcuSafe-Swift.h" // Replace with your actual project name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wakeword",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Voice/Wake-word detection library for React Native",
5
5
  "main": "wakewords/index.js",
6
6
  "types": "wakewords/index.d.ts",
@@ -105,22 +105,32 @@ export const createKeyWordRNBridgeInstance = async (instanceId, isSticky) => {
105
105
  };
106
106
 
107
107
  export const enableDucking = async () => {
108
- await KeyWordRNBridge.enableAggressiveDucking();
108
+ if (Platform.OS === 'ios') {
109
+ await KeyWordRNBridge.enableAggressiveDucking();
110
+ }
109
111
  }
110
112
 
111
113
  export const disableDucking = async () => {
112
- await KeyWordRNBridge.disableDucking();
114
+ if (Platform.OS === 'ios') {
115
+ await KeyWordRNBridge.disableDucking();
116
+ }
113
117
  }
114
118
 
115
119
  export const restartListeningAfterDucking = async () => {
116
- await KeyWordRNBridge.restartListeningAfterDucking();
120
+ if (Platform.OS === 'ios') {
121
+ await KeyWordRNBridge.restartListeningAfterDucking();
122
+ }
117
123
  }
118
124
 
119
125
  export const initAudioSessAndDuckManage = async () => {
120
- await KeyWordRNBridge.initAudioSessAndDuckManage
126
+ if (Platform.OS === 'ios') {
127
+ await KeyWordRNBridge.initAudioSessAndDuckManage();
128
+ }
121
129
  }
122
130
 
123
131
  export const disableDuckingAndCleanup = async () => {
124
- await KeyWordRNBridge.disableDuckingAndCleanup();
132
+ if (Platform.OS === 'ios') {
133
+ await KeyWordRNBridge.disableDuckingAndCleanup();
134
+ }
125
135
  }
126
136