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.
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar +0 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.md5 +1 -1
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.sha1 +1 -1
- package/package.json +1 -1
- package/wakewords/SpeakerVerificationRNBridge.d.ts +1 -1
- package/wakewords/SpeakerVerificationRNBridge.js +13 -2
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
06c4ab214cb57c965e94da52f395ded9 keyworddetection-1.0.0.aar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
223decc5c721fd9a5fa69a7790c16d1c3eecbecd keyworddetection-1.0.0.aar
|
package/package.json
CHANGED
|
@@ -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),
|