react-native-wakeword 1.1.60 → 1.1.61

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.
@@ -1 +1 @@
1
- ed65595f5ecff20ba88118c1b6482e04 keyworddetection-1.0.0.aar
1
+ 06c4ab214cb57c965e94da52f395ded9 keyworddetection-1.0.0.aar
@@ -1 +1 @@
1
- 322520afefcf90ae48808b0f61d0aee95d233195 keyworddetection-1.0.0.aar
1
+ 223decc5c721fd9a5fa69a7790c16d1c3eecbecd keyworddetection-1.0.0.aar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wakeword",
3
- "version": "1.1.60",
3
+ "version": "1.1.61",
4
4
  "description": "Voice/Wake-word detection library for React Native",
5
5
  "main": "wakewords/index.js",
6
6
  "types": "wakewords/index.d.ts",
@@ -39,7 +39,7 @@ export class SpeakerVerificationMicController {
39
39
  finalizeOnboardingNow(): Promise<any>;
40
40
  setEnrollmentJson(enrollmentJson: any): Promise<any>;
41
41
  startVerifyFromMic(resetState?: boolean): Promise<any>;
42
- startEndlessVerifyFromMic(hopSeconds?: number, stopOnMatch?: boolean): Promise<any>;
42
+ startEndlessVerifyFromMic(hopSeconds?: number, stopOnMatch?: boolean, resetState?: boolean): Promise<any>;
43
43
  stop(): Promise<any>;
44
44
  destroy(): Promise<any>;
45
45
  }
@@ -199,9 +199,20 @@ export class SpeakerVerificationMicController {
199
199
  );
200
200
  }
201
201
 
202
- async startEndlessVerifyFromMic(hopSeconds = 0.5, stopOnMatch = false) {
202
+ async startEndlessVerifyFromMic(hopSeconds = 0.5, stopOnMatch = false, resetState = true) {
203
203
  assertMethod('svStartEndlessVerifyFromMic');
204
- dbg('svStartEndlessVerifyFromMic args:', { controllerId: this.controllerId, hopSeconds, stopOnMatch });
204
+ dbg('svStartEndlessVerifyFromMic args:', { controllerId: this.controllerId, hopSeconds, stopOnMatch, resetState: !!resetState });
205
+
206
+ if (Platform.OS === 'android') {
207
+ return await KeyWordRNBridge.svStartEndlessVerifyFromMic(
208
+ this.controllerId,
209
+ Number(hopSeconds),
210
+ !!stopOnMatch,
211
+ !!resetState
212
+ );
213
+ }
214
+
215
+ // iOS bridge currently expects 3 JS args (controllerId, hopSeconds, stopOnMatch)
205
216
  return await KeyWordRNBridge.svStartEndlessVerifyFromMic(
206
217
  this.controllerId,
207
218
  Number(hopSeconds),