react-native-wakeword 1.1.83 → 1.1.87
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/package.json +1 -1
- package/wakewords/KeyWordRNBridge.js +10 -4
package/package.json
CHANGED
|
@@ -201,14 +201,20 @@ export class KeyWordRNBridgeInstance {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
async pauseDetection(stopMic = false) {
|
|
204
|
+
// XXX - check if needs await
|
|
205
|
+
// return await KeyWordRNBridge.pauseDetection(this.instanceId, stopMic);
|
|
204
206
|
return await KeyWordRNBridge.pauseDetection(this.instanceId, stopMic);
|
|
205
207
|
}
|
|
206
208
|
|
|
207
209
|
async unPauseDetection() {
|
|
208
|
-
// XXX BUG - FIX pause with false not working on unpause
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
// XXX BUG - FIX pause with false not working on unpause on Android.
|
|
211
|
+
if (Platform.OS === 'android') {
|
|
212
|
+
await KeyWordRNBridge.unPauseDetection(this.instanceId);
|
|
213
|
+
await KeyWordRNBridge.pauseDetection(this.instanceId, true);
|
|
214
|
+
}
|
|
215
|
+
// Check if needs await
|
|
216
|
+
// return await KeyWordRNBridge.unPauseDetection(this.instanceId);
|
|
217
|
+
return KeyWordRNBridge.unPauseDetection(this.instanceId);
|
|
212
218
|
}
|
|
213
219
|
|
|
214
220
|
async destroyInstance() {
|