react-native-wakeword 1.1.81 → 1.1.83
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
CHANGED
|
@@ -201,11 +201,14 @@ export class KeyWordRNBridgeInstance {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
async pauseDetection(stopMic = false) {
|
|
204
|
-
return KeyWordRNBridge.pauseDetection(this.instanceId, stopMic);
|
|
204
|
+
return await KeyWordRNBridge.pauseDetection(this.instanceId, stopMic);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
async unPauseDetection() {
|
|
208
|
-
|
|
208
|
+
// XXX BUG - FIX pause with false not working on unpause
|
|
209
|
+
await KeyWordRNBridge.unPauseDetection(this.instanceId);
|
|
210
|
+
await KeyWordRNBridge.pauseDetection(this.instanceId, true);
|
|
211
|
+
return await KeyWordRNBridge.unPauseDetection(this.instanceId);
|
|
209
212
|
}
|
|
210
213
|
|
|
211
214
|
async destroyInstance() {
|