react-native-wakeword 1.1.58 → 1.1.59
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
|
@@ -39,6 +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
43
|
stop(): Promise<any>;
|
|
43
44
|
destroy(): Promise<any>;
|
|
44
45
|
}
|
|
@@ -198,6 +198,16 @@ export class SpeakerVerificationMicController {
|
|
|
198
198
|
!!resetState
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
|
+
|
|
202
|
+
async startEndlessVerifyFromMic(hopSeconds = 0.5, stopOnMatch = false) {
|
|
203
|
+
assertMethod('svStartEndlessVerifyFromMic');
|
|
204
|
+
dbg('svStartEndlessVerifyFromMic args:', { controllerId: this.controllerId, hopSeconds, stopOnMatch });
|
|
205
|
+
return await KeyWordRNBridge.svStartEndlessVerifyFromMic(
|
|
206
|
+
this.controllerId,
|
|
207
|
+
Number(hopSeconds),
|
|
208
|
+
!!stopOnMatch
|
|
209
|
+
);
|
|
210
|
+
}
|
|
201
211
|
|
|
202
212
|
async stop() {
|
|
203
213
|
assertMethod('svStopMic');
|